# Using block or include file with an until loop

**URL:** <https://forum.ansible.com/t/using-block-or-include-file-with-an-until-loop/23895>\
**Category:** Ansible Developer\
**Created:** [March 6, 2017, 3:38pm UTC](https://forum.ansible.com/t/using-block-or-include-file-with-an-until-loop/23895 "2017-03-06T15:38:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brad\_Sturgis](https://avatars.discourse-cdn.com/v4/letter/b/76d3ee/32.png) [@Brad\_Sturgis](https://forum.ansible.com/u/Brad_Sturgis)\
**Post date:** [March 6, 2017, 3:38pm UTC](https://forum.ansible.com/t/using-block-or-include-file-with-an-until-loop/23895/1 "2017-03-06T15:38:58Z")

</div>

Is this feature under development ? I have seen multiple posts about this issue.

I would like to run a block of task until a condition is true. I have tried using until: mycheck.rc == 0 for both a block and running one yml file inside another with an include file. I see the variable in debug of mycheck.rc ==0 in the outer yml but it fails to retry the script until true.

Please let me know.

Thanks.

Brad
