# until: loop not longer valid?

**URL:** <https://forum.ansible.com/t/until-loop-not-longer-valid/13671>\
**Category:** Ansible Project\
**Created:** [October 14, 2013, 12:20pm UTC](https://forum.ansible.com/t/until-loop-not-longer-valid/13671 "2013-10-14T12:20:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steve\_Smith](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@Steve\_Smith](https://forum.ansible.com/u/Steve_Smith)\
**Post date:** [October 14, 2013, 12:20pm UTC](https://forum.ansible.com/t/until-loop-not-longer-valid/13671/1 "2013-10-14T12:20:30Z")

</div>

Hi,

I’m trying to use this (simplified) playbook:

- name: Hamlet check  
hosts: hamletnodes  
sudo: true  
vars:  
appname: hamlet  
svcname: “/etc/service/{{appname}}”

tasks:

- name: Wait for service to come down  
action: shell /usr/bin/svstat {{svcdir}}  
register: result  
until: result.stdout.find(’ down ') != -1

However when running it I get the following error:

ERROR: until is not a legal parameter in an Ansible task or handler

This is pretty much copied straight from the loop documentation. Has this been removed?

Thanks,  
Steve

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [October 14, 2013, 12:23pm UTC](https://forum.ansible.com/t/until-loop-not-longer-valid/13671/2 "2013-10-14T12:23:13Z")

</div>

Nope!

Do-until loops are available in the development branch, but for some reason the “version added” attribute isn’t shown. I suspect this is a formatting error in the documentation metadata, and will fix this. Sorry about that, I can see where that would be frustrating.

You will need to be using the devel branch to use the until loop feature.

---

<div class="post-metadata">

**Author:** ![Steve\_Smith](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@Steve\_Smith](https://forum.ansible.com/u/Steve_Smith)\
**Post date:** [October 14, 2013, 1:02pm UTC](https://forum.ansible.com/t/until-loop-not-longer-valid/13671/3 "2013-10-14T13:02:10Z")

</div>

Thanks Michael,

Is until: expected to make it into the next release?

Cheers,

Steve

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [October 14, 2013, 1:21pm UTC](https://forum.ansible.com/t/until-loop-not-longer-valid/13671/4 "2013-10-14T13:21:06Z")

</div>

Yes, it’s already in the next release.

The documentation will be marked up correctly in the next docs push, which will be soon.
