ansible/reboot-home.yml

14 lines
342 B
YAML
Raw Normal View History

2020-12-30 16:53:57 -06:00
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
---
2021-02-26 09:22:27 -06:00
- hosts: pik8s_nodes,pi-storage-1.desu.ltd,pik8s_masters
2020-12-30 16:53:57 -06:00
serial: 1
tasks:
- name: check for reboot-required
stat: path=/var/run/reboot-required
register: s
- name: reboot
2020-12-30 16:56:59 -06:00
reboot: reboot_timeout=300
2021-02-23 04:11:07 -06:00
when: s.stat.exists or reboot_force
2020-12-30 16:53:57 -06:00
become: yes