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

17 lines
362 B
YAML

#jinja2: trim_blocks: True, lstrip_blocks: True
---
- name: Reboot
hosts: kubernetes
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