# supply dict as parameter to role

**URL:** <https://forum.ansible.com/t/supply-dict-as-parameter-to-role/29776>\
**Category:** Ansible Project\
**Created:** [February 26, 2019, 2:08pm UTC](https://forum.ansible.com/t/supply-dict-as-parameter-to-role/29776 "2019-02-26T14:08:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andybourges](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@andybourges](https://forum.ansible.com/u/andybourges)\
**Post date:** [February 26, 2019, 2:08pm UTC](https://forum.ansible.com/t/supply-dict-as-parameter-to-role/29776/1 "2019-02-26T14:08:54Z")

</div>

Hi,

…I#m having a problem supplying a dictionary as parameter to a role. Seems it’s converted to Unicode and don’t know how to proceed. The basic idea is to have a task separated in a role and call it with different input parameters during the playbook. Looks like when assigning a parameter using “{{ }}” I almost got where I want to go (iterate over the supplied param dict), but somehow I’m unable to do that?!

Any hint greatly appreciated!

Thanks,

Andreas

Test-inventory:

ansible@test:~$ cat test\_inv.yml
