Example:
- name: Reboot server
shell: ( sleep 2 && shutdown -r now & )
async: 1
poll: 0
ignore_errors: true
- name: Waiting for host {{ ansible_default_ipv4.address }} after reboot
wait_for_connection:
timeout: 300
delay: 30
This example solve your problem :-)
No comments:
Post a Comment