Slight reorganization for development
This commit is contained in:
parent
f34dd35d5c
commit
8e28830c16
2
Vagrantfile
vendored
2
Vagrantfile
vendored
@ -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.playbook = "dev/workstation.yml"
|
||||
ansible.raw_arguments = ["--diff"]
|
||||
end
|
||||
end
|
||||
|
@ -1,4 +1,5 @@
|
||||
darkmode: false
|
||||
development: false
|
||||
homedir: "/home/{{ item.name }}"
|
||||
|
||||
# Follows homelab package list:
|
||||
|
@ -3,4 +3,3 @@
|
||||
name: vagrant
|
||||
password: "$6$xu0I8bbf.Nva7uCo$OHz5/64u0SjHa1jn0EwCLSNw7Zoj5ejhL\
|
||||
6NtaXYY6zlC0CQa0J4kZIxAp2Ls4lMdLmuo7oMQX/vlDucR9BbcA."
|
||||
|
||||
|
@ -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: |
|
||||
|
@ -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
5
workstation.yml
Normal file
@ -0,0 +1,5 @@
|
||||
- name: Install Workstation
|
||||
hosts: localhost
|
||||
become: true
|
||||
roles:
|
||||
- common
|
Loading…
Reference in New Issue
Block a user