# vars merging

**URL:** <https://forum.ansible.com/t/vars-merging/12572>\
**Category:** Ansible Project\
**Created:** [March 25, 2013, 4:24am UTC](https://forum.ansible.com/t/vars-merging/12572 "2013-03-25T04:24:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rektide](https://avatars.discourse-cdn.com/v4/letter/r/a88e57/32.png) [@rektide](https://forum.ansible.com/u/rektide)\
**Post date:** [March 25, 2013, 4:24am UTC](https://forum.ansible.com/t/vars-merging/12572/1 "2013-03-25T04:24:02Z")

</div>

Hi,

I'd like to have a default vars files with a number of complex YAML objects, and then allow  
users to come in and define their own YAML files that are merged on top of the existing YAML  
objects. At present Ansible behavior is that the top level object is overriden- is there any  
capability or technique I can adopt to use one vars to supplement an existing vars?

first.vars:

---

<div class="post-metadata">

**Author:** ![Serge\_van\_Ginderacht](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Post date:** [March 25, 2013, 6:39am UTC](https://forum.ansible.com/t/vars-merging/12572/2 "2013-03-25T06:39:08Z")

</div>

ATM this is AFAIK not possible, but

+1 for me, I have some use cases where this would be nice to have.

Serge
