# Variable Inheritance?

**URL:** <https://forum.ansible.com/t/variable-inheritance/20708>\
**Category:** Ansible Project\
**Created:** [February 29, 2016, 7:12pm UTC](https://forum.ansible.com/t/variable-inheritance/20708 "2016-02-29T19:12:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![strowi](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@strowi](https://forum.ansible.com/u/strowi)\
**Post date:** [February 29, 2016, 7:12pm UTC](https://forum.ansible.com/t/variable-inheritance/20708/1 "2016-02-29T19:12:48Z")

</div>

Hi everyone,

i am searching the docs but couldn’t find a good reference…

Is ther a way to inherit/extend variables from group\_vars → host\_vars?

E.g.:  
group\_vars/develop.yml  
groups:  
web:  
gid: 1002  
state: present

host\_vars/host1.yml  
groups:  
sys:  
gid: 1001  
state: present

Now i would like to have both groups on host1 and not only group sys…?

regards,  
strowi
