# rebooting and detecting failure

**URL:** <https://forum.ansible.com/t/rebooting-and-detecting-failure/23766>\
**Category:** Ansible Project\
**Created:** [February 19, 2017, 3:22am UTC](https://forum.ansible.com/t/rebooting-and-detecting-failure/23766 "2017-02-19T03:22:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixel\_fairy](https://avatars.discourse-cdn.com/v4/letter/p/6f9a4e/32.png) [@pixel\_fairy](https://forum.ansible.com/u/pixel_fairy)\
**Post date:** [February 19, 2017, 3:22am UTC](https://forum.ansible.com/t/rebooting-and-detecting-failure/23766/1 "2017-02-19T03:22:20Z")

</div>

[https://support.ansible.com/hc/en-us/articles/201958037-Reboot-a-server-and-wait-for-it-to-come-back](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.
