Files
dotfiles/config/ansible/main.yml
Menno van Leeuwen 8b51d375e5
Some checks failed
Nix Format Check / check-format (push) Failing after 37s
refactor: update SSH configurations and add new key for Menno's 2025 setup
2025-01-28 15:16:07 +01:00

22 lines
693 B
YAML

- name: Configure all hosts
hosts: all
gather_facts: true
pre_tasks:
- name: Install required collections
ansible.builtin.command: ansible-galaxy collection install -r requirements.yml
delegate_to: localhost
run_once: true
tasks:
- name: Include global tasks
ansible.builtin.import_tasks: tasks/global/global.yml
- name: Include workstation tasks
ansible.builtin.import_tasks: tasks/workstations/workstation.yml
when: hostname in ['mennos-laptop', 'mennos-desktop']
- name: Include server tasks
ansible.builtin.import_tasks: tasks/servers/server.yml
when: hostname in ['mennos-server', 'mennos-hobbypc', 'mennos-vm']