Hi all,
As part of a playbook I reboot nodes if they're missing a file I'm checking against. This is done like so:
- name: Reboot node if check file does not exist (we assume this is the first run)
command: shutdown -r now "Ansible updates triggered"
when: reboot_check_file.stat.exists == False
async: 0
poll: 0
ignore_errors: true
However, whatever I do I always get a "exception: SSH Error: Shared connection to app10002 closed". How can I force ansible to continue running although it lost its connection?