We need to ignore errors.
This commit is contained in:
parent
c589c89f60
commit
066f90e34b
@ -31,6 +31,9 @@ I'll just leave this here...
|
||||
- name: schedule reboot in 1 minute
|
||||
ansible.builtin.command:
|
||||
cmd: 'shutdown -r +1'
|
||||
ignore_errors: yes
|
||||
async: 3600
|
||||
poll: 0
|
||||
- name: wait for ssh to go away
|
||||
ansible.builtin.wait_for:
|
||||
host: '{{ (ansible_ssh_host|default(ansible_host))|default(inventory_hostname) }}'
|
||||
|
Loading…
Reference in New Issue
Block a user