Files
ansible/reboot_required.yml
2022-09-03 17:57:46 +02:00

14 lines
349 B
YAML

---
- name: reboot machine if required
# 'all' is okay here, because the fail task will force the user to specify a limit on the command line, using -l or --limit
hosts: 'all'
tasks:
- name: Force limit arg
include_role:
name: force_limitArg
- name: Reboot if required
include_role:
name: reboot_required