14 lines
290 B
YAML
14 lines
290 B
YAML
|
#!/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
|