Commit 95aa3e42 authored by Rafael Monnerat's avatar Rafael Monnerat

playbook: Setup auto reboot if Flag is present on the system

parent 1b2a43d4
...@@ -33,3 +33,11 @@ ...@@ -33,3 +33,11 @@
- name: create trigger reboot script - name: create trigger reboot script
copy: src=slapos-trigger-reboot.sh dest=/usr/local/bin/slapos-trigger-reboot.sh mode=700 copy: src=slapos-trigger-reboot.sh dest=/usr/local/bin/slapos-trigger-reboot.sh mode=700
- name: Stat AUTOREBOOT
stat: path=/opt/upgrader/AUTOREBOOT
register: autoreboot
- name: Setup auto-reboot cron
cron: name="Launch Reboot when REBOOT is Required" minute="*/30" job='/usr/local/bin/slapos-trigger-reboot.sh'
when: autoreboot.stat.exists == True
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment