ansible/reboot-home.yml
2021-05-25 15:35:50 -05:00

14 lines
330 B
YAML
Executable File

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: pik8s_nodes,pistorage,pik8s_masters
serial: 1
tasks:
- name: check for reboot-required
stat: path=/var/run/reboot-required
register: s
- name: reboot
reboot: reboot_timeout=300
when: s.stat.exists or reboot_force
become: yes