# ansible loop break hack

**URL:** <https://forum.ansible.com/t/ansible-loop-break-hack/18010>\
**Category:** Ansible Project\
**Created:** [April 17, 2015, 10:58pm UTC](https://forum.ansible.com/t/ansible-loop-break-hack/18010 "2015-04-17T22:58:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Siechniewicz](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@Daniel\_Siechniewicz](https://forum.ansible.com/u/Daniel_Siechniewicz)\
**Post date:** [April 17, 2015, 10:58pm UTC](https://forum.ansible.com/t/ansible-loop-break-hack/18010/1 "2015-04-17T22:58:16Z")

</div>

I've got a hack for what seems like a lack of "break" in ansible  
loops. How ugly is that (and is there a better way)?
