# Group of groups and variables

**URL:** <https://forum.ansible.com/t/group-of-groups-and-variables/16882>\
**Category:** Ansible Project\
**Created:** [November 25, 2014, 5:56pm UTC](https://forum.ansible.com/t/group-of-groups-and-variables/16882 "2014-11-25T17:56:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![George\_Adams](https://avatars.discourse-cdn.com/v4/letter/g/c77e96/32.png) [@George\_Adams](https://forum.ansible.com/u/George_Adams)\
**Post date:** [November 25, 2014, 5:56pm UTC](https://forum.ansible.com/t/group-of-groups-and-variables/16882/1 "2014-11-25T17:56:52Z")

</div>

Is there a way to have a group\_vars file for a group of groups? For example, I have

> [qa-webservers]
> 
> [qa-dbservers]
> 
> [qa:children]  
> qa-webservers  
> qa-dbservers
> 
> [qa:vars]  
> some\_var=asdf  
> other\_var=fdsa

I’d like to put the QA variables in group\_vars/qa.yml, but that doesn’t seem to be working. Is there any way to accomplish this?

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [November 25, 2014, 10:17pm UTC](https://forum.ansible.com/t/group-of-groups-and-variables/16882/2 "2014-11-25T22:17:43Z")

</div>

That the group is just hosts or has other groups, should not matter at  
all, this should work.

what version of ansible, python, OS? dir structure, etc?
