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