2024/automation/ansible/main.yml

20 lines
283 B
YAML
Raw Normal View History

---
- name: Run common tasks
hosts: all
roles:
- common
- name: Set up routers
hosts: routers
roles:
- firewall
- router
- name: Restart if required
hosts: all
tasks:
- name: Reboot
ansible.builtin.reboot:
when: restart_required is defined