Files
infra/ansible/site.yml
2026-06-21 20:45:11 +02:00

62 lines
1.4 KiB
YAML

---
- hosts: all
become: true
pre_tasks:
- name: Load local vault variables when available
tags: [always]
ansible.builtin.include_vars:
file: "{{ playbook_dir }}/../secrets/vault.yml"
when: lookup('ansible.builtin.fileglob', playbook_dir + '/../secrets/vault.yml', errors='ignore', wantlist=True) | length > 0
- name: Load machine-local vault variables when available
tags: [always]
ansible.builtin.include_vars:
file: "{{ playbook_dir }}/../secrets/vault.local.yml"
when: lookup('ansible.builtin.fileglob', playbook_dir + '/../secrets/vault.local.yml', errors='ignore', wantlist=True) | length > 0
roles:
- dotfiles_common
- hosts: void
become: true
roles:
- packages_void
- services_runit
- profile_desktop_common
- profile_desktop_sway
- profile_desktop_hyprland
- profile_desktop_kde
- profile_desktop_host
- hosts: workstation_dev_fedora
become: true
roles:
- packages_fedora
- services_systemd
- profile_workstation_dev_common
- hosts: workstation_host_linux
become: true
roles:
- profile_workstation_gnome
- hosts: workstation_dev_wsl
become: true
roles:
- packages_ubuntu
- services_systemd
- profile_workstation_dev_common
- profile_workstation_dev_wsl
- hosts: ubuntu_server
become: true
roles:
- packages_ubuntu
- services_systemd
- profile_server