# with\_nested loop with more than 3 elements

**URL:** <https://forum.ansible.com/t/with-nested-loop-with-more-than-3-elements/13181>\
**Category:** Ansible Project\
**Created:** [July 23, 2013, 9:20pm UTC](https://forum.ansible.com/t/with-nested-loop-with-more-than-3-elements/13181 "2013-07-23T21:20:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vincent\_Hardion](https://avatars.discourse-cdn.com/v4/letter/v/da6949/32.png) [@Vincent\_Hardion](https://forum.ansible.com/u/Vincent_Hardion)\
**Post date:** [July 23, 2013, 9:20pm UTC](https://forum.ansible.com/t/with-nested-loop-with-more-than-3-elements/13181/1 "2013-07-23T21:20:01Z")

</div>

Hi,

I just want to confirm the behavior of “with\_nested” before to submit a pull request.

If I add another element to the loop\_nested example like this:

---

<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:** [July 24, 2013, 1:08am UTC](https://forum.ansible.com/t/with-nested-loop-with-more-than-3-elements/13181/2 "2013-07-24T01:08:03Z")

</div>

It should be the second.

---

<div class="post-metadata">

**Author:** ![Vincent\_Hardion](https://avatars.discourse-cdn.com/v4/letter/v/da6949/32.png) [@Vincent\_Hardion](https://forum.ansible.com/u/Vincent_Hardion)\
**Post date:** [July 24, 2013, 5:37pm UTC](https://forum.ansible.com/t/with-nested-loop-with-more-than-3-elements/13181/3 "2013-07-24T17:37:14Z")

</div>

Hi,

Here is the pull request included the unit test: [https://github.com/ansible/ansible/pull/3654](https://github.com/ansible/ansible/pull/3654).

Cheers,  
Vincent
