# How to wait for certain stat

**URL:** <https://forum.ansible.com/t/how-to-wait-for-certain-stat/12397>\
**Category:** Ansible Project\
**Created:** [February 21, 2013, 4:38am UTC](https://forum.ansible.com/t/how-to-wait-for-certain-stat/12397 "2013-02-21T04:38:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kavin](https://avatars.discourse-cdn.com/v4/letter/k/ba8739/32.png) [@Kavin](https://forum.ansible.com/u/Kavin)\
**Post date:** [February 21, 2013, 4:38am UTC](https://forum.ansible.com/t/how-to-wait-for-certain-stat/12397/1 "2013-02-21T04:38:24Z")

</div>

Is there a way , i can wait for some stat to go to a particular value before going to the next step ?

Sorry this might not be clear, but maybe call some module which will give value x and compare if the value matches if it matches or exceeds/decreases, go on to the next task. Similar to wait\_for but not for port.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [February 21, 2013, 4:40am UTC](https://forum.ansible.com/t/how-to-wait-for-certain-stat/12397/2 "2013-02-21T04:40:28Z")

</div>

We've been discussing making an 'until' keyword. This is not yet available.

---

<div class="post-metadata">

**Author:** ![Kavin](https://avatars.discourse-cdn.com/v4/letter/k/ba8739/32.png) [@Kavin](https://forum.ansible.com/u/Kavin)\
**Post date:** [February 21, 2013, 6:40am UTC](https://forum.ansible.com/t/how-to-wait-for-certain-stat/12397/3 "2013-02-21T06:40:11Z")

</div>

thats nice, It will be good if its easily extensible so can call remote command or local and then filter the output , maybe regex, and then do a check on it, would be awesome!!

Regards,–  
Kavin Kankeshwar
