# Merging 2 complex dictionary vars

**URL:** <https://forum.ansible.com/t/merging-2-complex-dictionary-vars/19462>\
**Category:** Ansible Project\
**Created:** [October 8, 2015, 9:23am UTC](https://forum.ansible.com/t/merging-2-complex-dictionary-vars/19462 "2015-10-08T09:23:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amir\_Luzon](https://avatars.discourse-cdn.com/v4/letter/a/9d8465/32.png) [@Amir\_Luzon](https://forum.ansible.com/u/Amir_Luzon)\
**Post date:** [October 8, 2015, 9:23am UTC](https://forum.ansible.com/t/merging-2-complex-dictionary-vars/19462/1 "2015-10-08T09:23:43Z")

</div>

Hey guys,

so we have a complex variable which we would like ansible to merge. It does not seem to be doing this and i am trying to figure out why this is happening (hash\_behaviour=merge is configured).

here is the information:

- Ansible version 1.9.1
- The files in question are inventory variables.
- First file is global setting (not specific environment) and is found on: /ansible\_code/group\_vars/dbonline.yml
- Second file is specific environment and is found on: /ansible\_code/environments/[ENV\_NAME]/group\_vars/dbonline.yml  
here is the playbook i am running:

`
