diff options
Diffstat (limited to 'site.workstation.yml')
-rw-r--r-- | site.workstation.yml | 57 |
1 files changed, 56 insertions, 1 deletions
diff --git a/site.workstation.yml b/site.workstation.yml index e9a3409..1e618c3 100644 --- a/site.workstation.yml +++ b/site.workstation.yml @@ -1,10 +1,65 @@ +--- + - hosts: localhost + vars: + _workstation_user: qwd + basegroups_workstation_user: "{{_workstation_user }}" + doas_workstation_user: "{{ _workstation_user }}" + dockerd_workstation_user: "{{ _workstation_user }}" + libvirt_workstation_user: "{{ _workstation_user }}" + pipewire_workstation_user: "{{ _workstation_user }}" + shell_workstation_user: "{{ _workstation_user }}" + yay_workstation_user: "{{ _workstation_user }}" + pre_tasks: - name: verify running as root ansible.builtin.fail: when: ansible_user_id != "root" tags: always + - name: retrieve installed packages + ansible.builtin.package_facts: + register: package_facts roles: - - role: workstation + - role: _workstation/basetools + when: ansible_distribution in ["Archlinux", "OpenBSD"] + - role: _workstation/basegroups + when: ansible_distribution in ["Archlinux"] + - role: _workstation/wscons + when: ansible_distribution in ["OpenBSD"] + + - role: _workstation/shell + - role: _workstation/hosts + - role: _workstation/doas + + - role: _workstation/yay + when: + - ansible_distribution in ["Archlinux"] + - "'yay' not in package_facts.ansible_facts.packages" + - "'yay-bin' not in package_facts.ansible_facts.packages" + + - role: _workstation/xorg + when: ansible_distribution in ["Archlinux", "OpenBSD"] + + - role: _workstation/smartcard + when: ansible_distribution in ["Archlinux", "OpenBSD"] + - role: _workstation/pipewire + when: ansible_distribution in ["Archlinux"] + - role: _workstation/cronie + when: ansible_distribution in ["Archlinux"] + - role: _workstation/libvirt + when: ansible_distribution in ["Archlinux"] + - role: _workstation/dockerd + when: ansible_distribution in ["Archlinux"] + - role: _workstation/resolv + when: ansible_distribution in ["Archlinux"] + + - role: _workstation/tlp + when: + - ansible_distribution in ["Archlinux"] + - ansible_form_factor in ["Laptop", "Notebook"] + - role: _workstation/apm + when: ansible_distribution in ["OpenBSD"] + - role: _workstation/kernel + when: ansible_distribution in ["OpenBSD"] |