# lists and dictionaries in layers

**URL:** <https://forum.ansible.com/t/lists-and-dictionaries-in-layers/21468>\
**Category:** Ansible Project\
**Created:** [May 18, 2016, 7:27am UTC](https://forum.ansible.com/t/lists-and-dictionaries-in-layers/21468 "2016-05-18T07:27:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![swen.b](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@swen.b](https://forum.ansible.com/u/swen.b)\
**Post date:** [May 18, 2016, 7:27am UTC](https://forum.ansible.com/t/lists-and-dictionaries-in-layers/21468/1 "2016-05-18T07:27:58Z")

</div>

Is it possbile to use lists and dictionaries in more layers like:

vars:  
users:

- unsername: jon  
ssh: True  
pages:
- pagename: page1  
documentroot: /home/page1
- pagename: page2  
documentroot: /home/page2
- unsername: jane  
ssh: False  
pages:
- pagename: page3  
documentroot: /home/page3
- pagename: page4  
documentroot: /home/page4

Can I use jinja2 templateing to create a file per user with all documentroots in it?  
Is this the “right” way to achieve this goal?

Thank you very much for help!
