# loop advice

**URL:** <https://forum.ansible.com/t/loop-advice/19601>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [October 24, 2015, 12:05am UTC](https://forum.ansible.com/t/loop-advice/19601 "2015-10-24T00:05:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [October 24, 2015, 12:05am UTC](https://forum.ansible.com/t/loop-advice/19601/1 "2015-10-24T00:05:55Z")

</div>

you cannot duplicate directives, only one with\_ will work per task,  
look at with\_nested or with\_together to use multiple vars to compose a  
loop
