We need to ignore errors.

This commit is contained in:
Florian Obser 2023-10-06 16:46:22 +02:00
parent c589c89f60
commit 066f90e34b

View File

@ -31,6 +31,9 @@ I'll just leave this here...
- name: schedule reboot in 1 minute - name: schedule reboot in 1 minute
ansible.builtin.command: ansible.builtin.command:
cmd: 'shutdown -r +1' cmd: 'shutdown -r +1'
ignore_errors: yes
async: 3600
poll: 0
- name: wait for ssh to go away - name: wait for ssh to go away
ansible.builtin.wait_for: ansible.builtin.wait_for:
host: '{{ (ansible_ssh_host|default(ansible_host))|default(inventory_hostname) }}' host: '{{ (ansible_ssh_host|default(ansible_host))|default(inventory_hostname) }}'