My workstation configuration in ansible.
- Install
ansible
andpython-apt
. - Check actions:
ansible-playbook -i hosts/localhost.yml --diff playbooks/home.yml --ask-become-pass --check
- Run ansible:
ansible-playbook -i hosts/localhost.yml --diff playbooks/home.yml --ask-become-pass
Use hosts/host_vars/localhost.yml
to customize variables for a local station.
Put custom files, such as openvpn configuration, to playbooks/files
.
Set users in host_vars
:
users:
kryten:
password: "$HASHED$PASSWORD"
groups:
- adm # Read logs
- bumblebee # Nvidia switch
- docker # Acess to docker
Set openVPN in host_vars
:
openvpn:
red_dwarf:
config: red_dwarf.conf
files:
- cacert.pem
- tls_auth
- kryten-key.pem
- kryten-cert.pem
Put files directly in playbooks/files
directory.
Set window manager using window_manager
.
Options are i3
(default) and xfce4
.