test
This commit is contained in:
@@ -7,13 +7,14 @@
|
||||
tasks:
|
||||
- name: Check if a reboot is required
|
||||
register: reboot
|
||||
stat: path=/var/run/reboot-required
|
||||
ansible.builtin.stat:
|
||||
path: /var/run/reboot-required
|
||||
|
||||
- name: Reboot machine
|
||||
command: /sbin/reboot now
|
||||
async: 1
|
||||
poll: 0
|
||||
when: reboot.stat.exists == true
|
||||
when: reboot.stat.exists
|
||||
|
||||
- name: Pause for 15 seconds
|
||||
ansible.builtin.pause:
|
||||
|
||||
Reference in New Issue
Block a user