changes
This commit is contained in:
@@ -2,10 +2,14 @@
|
||||
- name: Reboot machine
|
||||
hosts: "{{ Daily_Reboot_Hosts }}"
|
||||
become: yes
|
||||
become_method: sudo
|
||||
|
||||
tasks:
|
||||
- name: Reboot machine
|
||||
become: yes
|
||||
ansible.builtin.reboot:
|
||||
reboot_timeout: 3600
|
||||
msg: "Automatic reboot initiated"
|
||||
command: /sbin/reboot
|
||||
async: 1
|
||||
poll: 0
|
||||
when: reboot.stat.exists == true
|
||||
|
||||
- name: Wait for systems to become reachable
|
||||
wait_for_connection:
|
||||
Reference in New Issue
Block a user