2
0
This commit is contained in:
2024-06-08 15:13:17 +02:00
parent bc69724dad
commit e1f606c0e8

View File

@@ -2,7 +2,7 @@
- name: Check if system reboot is required
hosts: all
become: yes
become_method: sudo
become_user: root
tasks:
- name: Check if a reboot is required
@@ -11,7 +11,8 @@
path: /var/run/reboot-required
- name: Reboot machine
ansible.builtin.reboot:
command: /sbin/reboot now
poll: 0
when: reboot.stat.exists
- name: Pause for 15 seconds