Files
dotfiles/config/ansible/main.yml
Menno van Leeuwen c651722b73
All checks were successful
Nix Format Check / check-format (pull_request) Successful in 40s
refactor: reorganize Ansible tasks for better structure and include common package installations
2025-01-22 15:11:58 +01:00

16 lines
502 B
YAML

- name: Configure all hosts
hosts: all
gather_facts: 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', 'homeserver-pc', 'mennos-vm']