/my-ansible

My workstation configuration in ansible

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

my-ansible

My workstation configuration in ansible.

Usage

  1. Install ansible and python-apt.
  2. Check actions:
ansible-playbook -i hosts/localhost.yml --diff playbooks/home.yml --ask-become-pass --check
  1. Run ansible:
ansible-playbook -i hosts/localhost.yml --diff playbooks/home.yml --ask-become-pass

Customization

Use hosts/host_vars/localhost.yml to customize variables for a local station. Put custom files, such as openvpn configuration, to playbooks/files.

Users

Set users in host_vars:

users:
  kryten:
    password: "$HASHED$PASSWORD"
    groups:
      - adm  # Read logs
      - bumblebee  # Nvidia switch
      - docker  # Acess to docker

OpenVPN

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.

Window manager

Set window manager using window_manager. Options are i3 (default) and xfce4.