ansible/reboot-home.yml

14 lines
355 B
YAML
Executable File

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: device_roles_pik8s-node,device_roles_pik8s-storage,device_roles_pik8s-master
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
become: yes