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