# Assign dictionnary variable to another variable in Yaml file

**URL:** <https://forum.ansible.com/t/assign-dictionnary-variable-to-another-variable-in-yaml-file/14705>\
**Category:** Ansible Project\
**Created:** [March 5, 2014, 11:40am UTC](https://forum.ansible.com/t/assign-dictionnary-variable-to-another-variable-in-yaml-file/14705 "2014-03-05T11:40:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![judauphant](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@judauphant](https://forum.ansible.com/u/judauphant)\
**Post date:** [March 5, 2014, 11:40am UTC](https://forum.ansible.com/t/assign-dictionnary-variable-to-another-variable-in-yaml-file/14705/1 "2014-03-05T11:40:18Z")

</div>

Hi,

I would like to assign dictionnary variable to a another variable like that :

`

---

<div class="post-metadata">

**Author:** ![judauphant](https://avatars.discourse-cdn.com/v4/letter/j/ce73a5/32.png) [@judauphant](https://forum.ansible.com/u/judauphant)\
**Post date:** [March 5, 2014, 11:50am UTC](https://forum.ansible.com/t/assign-dictionnary-variable-to-another-variable-in-yaml-file/14705/2 "2014-03-05T11:50:14Z")

</div>

Sorry to have bother you.  
In fact :  
`dict2: "{{dict1}}"`

works well.

My mistake.

Best regards,  
Julien
