# GCE inventory nested groups

**URL:** <https://forum.ansible.com/t/gce-inventory-nested-groups/18640>\
**Category:** Ansible Project\
**Created:** [June 30, 2015, 8:14am UTC](https://forum.ansible.com/t/gce-inventory-nested-groups/18640 "2015-06-30T08:14:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Or\_Elimelech](https://avatars.discourse-cdn.com/v4/letter/o/db5fbb/32.png) [@Or\_Elimelech](https://forum.ansible.com/u/Or_Elimelech)\
**Post date:** [June 30, 2015, 8:14am UTC](https://forum.ansible.com/t/gce-inventory-nested-groups/18640/1 "2015-06-30T08:14:09Z")

</div>

Hi Ansibles,

Is there a way to create nested groups for GCE inventory?

For example

[tag\_elasticsearch:vars]

[tag\_elasticsearch-prod:vars]

Please tell me if there is a way to do so or I am just doing it wrong and not the ansible way.

I am coming from 4 years puppet and 1 year chef.

---

<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:** [July 3, 2015, 11:10pm UTC](https://forum.ansible.com/t/gce-inventory-nested-groups/18640/2 "2015-07-03T23:10:30Z")

</div>

this is how you create nested groups in the ini format:

[mastergroup:children]  
childgroup1  
childgroup2
