# how to loop an arrays with inner arrays in the playbook

**URL:** <https://forum.ansible.com/t/how-to-loop-an-arrays-with-inner-arrays-in-the-playbook/18535>\
**Category:** Ansible Developer\
**Created:** [June 18, 2015, 2:39am UTC](https://forum.ansible.com/t/how-to-loop-an-arrays-with-inner-arrays-in-the-playbook/18535 "2015-06-18T02:39:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user123](https://avatars.discourse-cdn.com/v4/letter/u/ed655f/32.png) [@user123](https://forum.ansible.com/u/user123)\
**Post date:** [June 18, 2015, 2:39am UTC](https://forum.ansible.com/t/how-to-loop-an-arrays-with-inner-arrays-in-the-playbook/18535/1 "2015-06-18T02:39:24Z")

</div>

here is the play book

---

<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:** [June 18, 2015, 4:01am UTC](https://forum.ansible.com/t/how-to-loop-an-arrays-with-inner-arrays-in-the-playbook/18535/2 "2015-06-18T04:01:07Z")

</div>

with items does 2 steps of 'flattening' you might want to do

with\_items  
- "{{ myapps }}"
