Files
home-cluster/bootstrap/templates/ansible/playbooks/cluster-reboot.yaml.j2
T

16 lines
307 B
YAML

---
- name: Reboot
hosts: all
become: true
gather_facts: true
any_errors_fatal: true
pre_tasks:
- name: Pausing for 5 seconds...
ansible.builtin.pause:
seconds: 5
tasks:
- name: Reboot
ansible.builtin.reboot:
msg: Rebooting nodes
reboot_timeout: 3600