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