# Use dict2items with subelements

**URL:** <https://forum.ansible.com/t/use-dict2items-with-subelements/28745>\
**Category:** Ansible Developer\
**Created:** [October 8, 2018, 10:59pm UTC](https://forum.ansible.com/t/use-dict2items-with-subelements/28745 "2018-10-08T22:59:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicholas\_Henry](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@Nicholas\_Henry](https://forum.ansible.com/u/Nicholas_Henry)\
**Post date:** [October 8, 2018, 10:59pm UTC](https://forum.ansible.com/t/use-dict2items-with-subelements/28745/1 "2018-10-08T22:59:49Z")

</div>

I’m new to Ansible and am having trouble figuring out how to properly do this…

I’ve got a list of users and under them is a list of git config settings that I want Ansible to setup for me. As an example, I’ve got something like this:

`
