2020-12-30 16:53:57 -06:00
|
|
|
#!/usr/bin/env ansible-playbook
|
|
|
|
# vim:ft=ansible:
|
|
|
|
---
|
2021-09-14 19:06:46 -05:00
|
|
|
- hosts: manufacturers_raspi
|
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-08-25 12:20:47 -05:00
|
|
|
when: s.stat.exists
|
2020-12-30 16:53:57 -06:00
|
|
|
become: yes
|