2
0
This commit is contained in:
2024-06-06 22:24:48 +02:00
parent 348f470910
commit 51c036bfec

View File

@@ -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: