# iterating using with\_list

**URL:** <https://forum.ansible.com/t/iterating-using-with-list/25362>\
**Category:** Ansible Project\
**Created:** [August 29, 2017, 11:09pm UTC](https://forum.ansible.com/t/iterating-using-with-list/25362 "2017-08-29T23:09:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pshem\_Kowalczyk](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@Pshem\_Kowalczyk](https://forum.ansible.com/u/Pshem_Kowalczyk)\
**Post date:** [August 29, 2017, 11:09pm UTC](https://forum.ansible.com/t/iterating-using-with-list/25362/1 "2017-08-29T23:09:19Z")

</div>

Hi,

I have a requirement to iterate over list of lists:

panels:

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [August 30, 2017, 6:52pm UTC](https://forum.ansible.com/t/iterating-using-with-list/25362/2 "2017-08-30T18:52:38Z")

</div>

To my knowledge Ansible have never had with\_list.

So it's probably something someone have made, so you would need to hunt it down and install it if you would like to use it.

---

<div class="post-metadata">

**Author:** ![Pshem\_Kowalczyk](https://avatars.discourse-cdn.com/v4/letter/p/e480ec/32.png) [@Pshem\_Kowalczyk](https://forum.ansible.com/u/Pshem_Kowalczyk)\
**Post date:** [August 30, 2017, 7:56pm UTC](https://forum.ansible.com/t/iterating-using-with-list/25362/3 "2017-08-30T19:56:58Z")

</div>

Hmm,

This is the thing I’m taking about: [https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/lookup/list.py](https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/lookup/list.py)

Looking at the history I can see that it was added by bcoca about 2 years ago. It doesn’t look like it changed much over the years (the code is trivial). So, I suspect that despite lack of documentation it is supported after all.

kind regards  
Pshem
