16 lines
314 B
YAML
16 lines
314 B
YAML
---
|
|
- 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 hosts
|
|
reboot_timeout: 3600
|