# Dynamic inventory - how to use group:children

**URL:** <https://forum.ansible.com/t/dynamic-inventory-how-to-use-group-children/24815>\
**Category:** Ansible Project\
**Created:** [June 24, 2017, 9:30am UTC](https://forum.ansible.com/t/dynamic-inventory-how-to-use-group-children/24815 "2017-06-24T09:30:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [June 24, 2017, 9:30am UTC](https://forum.ansible.com/t/dynamic-inventory-how-to-use-group-children/24815/1 "2017-06-24T09:30:12Z")

</div>

In “normal” inventory files, there’s the concept of “group children”, allowing the use of nested groups of hotsts.

However, the documentation for the expected output of dynamic inventory systems does not include information about how Ansible expects group children to be presented in json form.  
Does anyone have an example of what the json format should look like?

---

<div class="post-metadata">

**Author:** ![Paul\_Markham](https://avatars.discourse-cdn.com/v4/letter/p/9d8465/32.png) [@Paul\_Markham](https://forum.ansible.com/u/Paul_Markham)\
**Post date:** [June 26, 2017, 4:24am UTC](https://forum.ansible.com/t/dynamic-inventory-how-to-use-group-children/24815/2 "2017-06-26T04:24:49Z")

</div>

There’s a “children” field in the JSON. Have a look at [http://docs.ansible.com/ansible/dev\_guide/developing\_inventory.html](http://docs.ansible.com/ansible/dev_guide/developing_inventory.html), in the Script Conventions section:

```auto

"children": ["marietta", "5points"]

```

---

<div class="post-metadata">

**Author:** ![Trond\_Hindenes](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@Trond\_Hindenes](https://forum.ansible.com/u/Trond_Hindenes)\
**Post date:** [June 26, 2017, 5:02pm UTC](https://forum.ansible.com/t/dynamic-inventory-how-to-use-group-children/24815/3 "2017-06-26T17:02:29Z")

</div>

indeed it is. Thank you!!
