# how to wait for a windows machine to come up after rebooting?

**URL:** <https://forum.ansible.com/t/how-to-wait-for-a-windows-machine-to-come-up-after-rebooting/21173>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [April 15, 2016, 1:07pm UTC](https://forum.ansible.com/t/how-to-wait-for-a-windows-machine-to-come-up-after-rebooting/21173 "2016-04-15T13:07:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mick\_st\_john](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Mick\_st\_john](https://forum.ansible.com/u/Mick_st_john)\
**Post date:** [April 15, 2016, 1:07pm UTC](https://forum.ansible.com/t/how-to-wait-for-a-windows-machine-to-come-up-after-rebooting/21173/1 "2016-04-15T13:07:19Z")

</div>

I am trying to reboot a windows machine and I want to wait for it come up. I tried the following playbook:

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [April 15, 2016, 5:28pm UTC](https://forum.ansible.com/t/how-to-wait-for-a-windows-machine-to-come-up-after-rebooting/21173/2 "2016-04-15T17:28:02Z")

</div>

There is a win\_reboot role on Galaxy which will do this for you.

Also there is a Pull Request (not yet merged) for a win\_reboot action here [https://github.com/ansible/ansible/pull/15314](https://github.com/ansible/ansible/pull/15314)

If you can help out with testing the reboot action that would make it more likely to get included in the next release of Ansible.

Hope this helps,

Jon
