test
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user