How to wait for certain stat

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.

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

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