I have a task that needs to run after a reboot. I know that checking connection can be done with wait_for_connection
.
I have the following draft:
- name: Reboot host
reboot:
name: Wait 300 seconds, but only start checking after 60 seconds
wait_for_connection:
delay: 60
timeout: 300
name: Do some other stuff
.
..
...
Does the wait_for_connection
module automatically reconnects once available? Or do I have to have a seperate task for that? Is there a better way of doing this?
Thanks ahead!