# multiple env's + combine dynamic and static inventory + same group\_vars/host\_vars

**URL:** <https://forum.ansible.com/t/multiple-envs-combine-dynamic-and-static-inventory-same-group-vars-host-vars/21739>\
**Category:** Ansible Project\
**Created:** [June 10, 2016, 9:58pm UTC](https://forum.ansible.com/t/multiple-envs-combine-dynamic-and-static-inventory-same-group-vars-host-vars/21739 "2016-06-10T21:58:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bert](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@Bert](https://forum.ansible.com/u/Bert)\
**Post date:** [June 10, 2016, 9:58pm UTC](https://forum.ansible.com/t/multiple-envs-combine-dynamic-and-static-inventory-same-group-vars-host-vars/21739/1 "2016-06-10T21:58:03Z")

</div>

Hi,

I have the following inventory structure:

inventory  
├── development  
├── group\_vars  
│ └── all  
│ └── group

├── host\_vars  
│ ├── host  
└── production  
├── gce.py  
└── production # static hosts

So the development env is a simple static file, the production env is a combo of dynamic and static hosts.

The problem here is that (due to the production directory), the production env searches the group\_vars and host\_vars in the production directory (relative to the inventory files).  
But then I have to duplicate my group\_vars and host\_vars

I could solve this with symlinks, but this is kinda ugly.

Is there a better way?
