We need to ignore errors.

This commit is contained in:
Florian Obser 2023-10-06 16:46:22 +02:00
parent c589c89f60
commit 066f90e34b
1 changed files with 3 additions and 0 deletions

View File

@ -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) }}'