# Using the wait\_for module to check if the VM is up and running

**URL:** <https://forum.ansible.com/t/using-the-wait-for-module-to-check-if-the-vm-is-up-and-running/22262>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [August 10, 2016, 11:27am UTC](https://forum.ansible.com/t/using-the-wait-for-module-to-check-if-the-vm-is-up-and-running/22262 "2016-08-10T11:27:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chethan\_S](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@Chethan\_S](https://forum.ansible.com/u/Chethan_S)\
**Post date:** [August 10, 2016, 11:27am UTC](https://forum.ansible.com/t/using-the-wait-for-module-to-check-if-the-vm-is-up-and-running/22262/1 "2016-08-10T11:27:30Z")

</div>

I am trying to develop a simple playbook (which would later be used in larger ones) to check if Windows VMs in the inventory are up and running.

`

---

<div class="post-metadata">

**Author:** ![Mike\_Fennemore](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Mike\_Fennemore](https://forum.ansible.com/u/Mike_Fennemore)\
**Post date:** [August 10, 2016, 2:26pm UTC](https://forum.ansible.com/t/using-the-wait-for-module-to-check-if-the-vm-is-up-and-running/22262/2 "2016-08-10T14:26:45Z")

</div>

Perhaps try ansible\_host instead of ansible\_ssh\_host?

---

<div class="post-metadata">

**Author:** ![Chethan\_S](https://avatars.discourse-cdn.com/v4/letter/c/b3f665/32.png) [@Chethan\_S](https://forum.ansible.com/u/Chethan_S)\
**Post date:** [August 10, 2016, 3:08pm UTC](https://forum.ansible.com/t/using-the-wait-for-module-to-check-if-the-vm-is-up-and-running/22262/3 "2016-08-10T15:08:37Z")

</div>

I still get a similar error -  
The error was: ‘dict object’ has no attribute ‘ansible\_host’\n\nThe error appears to have been in ‘/var/lib/awx/projects/vms/waitcheck.yml’
