rebooting and detecting failure

15 views
Skip to first unread message

pixel fairy

unread,
Feb 18, 2017, 10:22:20 PM2/18/17
to Ansible Project
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.
Reply all
Reply to author
Forward
0 new messages