https://support.ansible.com/hc/en-us/articles/201958037-Reboot-a-server-and-wait-for-it-to-come-back
- name: restart machine command: shutdown -r now "Ansible updates triggered" async: 0 poll: 0 ignore_errors: true if your ignoring errors, is there a way to detect failure to reboot? not that i've ever seen it happen, but still like to know. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/c3616e30-c05f-47d3-be3c-4e4a1f90c805%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
