# debugging nested list

**URL:** <https://forum.ansible.com/t/debugging-nested-list/25317>\
**Category:** Ansible Project\
**Created:** [August 24, 2017, 2:06am UTC](https://forum.ansible.com/t/debugging-nested-list/25317 "2017-08-24T02:06:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henry\_Medina](https://avatars.discourse-cdn.com/v4/letter/h/5f8ce5/32.png) [@Henry\_Medina](https://forum.ansible.com/u/Henry_Medina)\
**Post date:** [August 24, 2017, 2:06am UTC](https://forum.ansible.com/t/debugging-nested-list/25317/1 "2017-08-24T02:06:51Z")

</div>

Hello Folks,

I have a debugging question that has left me scratching my head. I have a vars file with the following vars (using ansible 2.3.2.0):

packages1:

one:

version: “one-ish”

two:

version: “two-ish”

---

<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 24, 2017, 8:04am UTC](https://forum.ansible.com/t/debugging-nested-list/25317/2 "2017-08-24T08:04:41Z")

</div>

Your ‘packages1’ is a dictionary/hash not a list/array, so if you want to iterate over it you have to use with\_dict.

kind regards  
Pshem
