Compare commits

...

2 Commits

9 changed files with 14 additions and 6 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
environments
inventories
.vagrant
.vagrant_settings
.vscode

4
Vagrantfile vendored
View File

@ -45,7 +45,7 @@ Vagrant.configure("2") do |config|
config.vm.provision "ansible" do |ansible|
ENV['ANSIBLE_ROLES_PATH'] = File.dirname(__FILE__) + "/roles"
ansible.compatibility_mode = "2.0"
ansible.playbook = "site-vagrant.yml"
ansible.raw_arguments = ["--diff"]
ansible.playbook = "dev/workstation.yml"
ansible.raw_arguments = ["--diff"]
end
end

View File

@ -1,4 +1,5 @@
darkmode: false
development: false
homedir: "/home/{{ item.name }}"
# Follows homelab package list:

View File

@ -3,4 +3,3 @@
name: vagrant
password: "$6$xu0I8bbf.Nva7uCo$OHz5/64u0SjHa1jn0EwCLSNw7Zoj5ejhL\
6NtaXYY6zlC0CQa0J4kZIxAp2Ls4lMdLmuo7oMQX/vlDucR9BbcA."

View File

@ -5,16 +5,17 @@
update_cache: true
- name: Create autostart-scripts directory
file:
ansible.builtin.file:
path: "{{ homedir }}/.config/autostart-scripts/"
state: directory
owner: "{{ item.name }}"
group: "{{ item.name }}"
mode: 0700
loop: "{{ users }}"
when: manage_gui
- name: Enable KDE dark theme
copy:
ansible.builtin.copy:
dest: "{{ homedir }}/.config/autostart-scripts/darkmode.sh"
mode: a+x
content: |

View File

@ -9,7 +9,7 @@
name: "{{ item.name }}"
state: present
groups: "{{ item.groups }}"
append: yes
append: true
shell: "{{ item.shell | default('/bin/bash') }}"
create_home: "{{ item.home | default(false) }}"
loop: "{{ users }}"

5
workstation.yml Normal file
View File

@ -0,0 +1,5 @@
- name: Install Workstation
hosts: localhost
become: true
roles:
- common