Add reboot play

This commit is contained in:
Salt 2020-12-30 16:53:57 -06:00
parent f1280f1e5e
commit 41600e2204

13
reboot.yml Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
- hosts: db,web,game
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