# wait\_for port isn't waiting

**URL:** <https://forum.ansible.com/t/wait-for-port-isnt-waiting/24288>\
**Category:** Ansible Project\
**Created:** [April 21, 2017, 9:56pm UTC](https://forum.ansible.com/t/wait-for-port-isnt-waiting/24288 "2017-04-21T21:56:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Williams1](https://avatars.discourse-cdn.com/v4/letter/b/c67d28/32.png) [@Brian\_Williams1](https://forum.ansible.com/u/Brian_Williams1)\
**Post date:** [April 21, 2017, 9:56pm UTC](https://forum.ansible.com/t/wait-for-port-isnt-waiting/24288/1 "2017-04-21T21:56:43Z")

</div>

Hi everyone,

I have a playbook where I am waiting for a port to come up. On certain machines it sometimes doesn’t waits and immediately fails. I’m not certain what is causing this, and I can’t easily reproduce.

Here is the task in the role:

- name: wait for api to come back up (120 minutes)  
wait\_for: port=7778 timeout=7200 delay=61

Here is an example of the task with timestamps:
