# Vmware\_inventory and parent\_group parameter

**URL:** <https://forum.ansible.com/t/vmware-inventory-and-parent-group-parameter/5935>\
**Category:** Get Help\
**Tags:** vmware, ansible, awx, inventory\
**Created:** [May 22, 2024, 1:43pm UTC](https://forum.ansible.com/t/vmware-inventory-and-parent-group-parameter/5935 "2024-05-22T13:43:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karim\_A](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/karim_a/32/2655_2.png) [@Karim\_A](https://forum.ansible.com/u/Karim_A)\
**Post date:** [May 22, 2024, 1:43pm UTC](https://forum.ansible.com/t/vmware-inventory-and-parent-group-parameter/5935/1 "2024-05-22T13:43:05Z")

</div>

hi

I’m using AWX version 23.5.1, and I’d like to enhance my VMware inventory by adding a subgroup to a group. I found the `parent_group` parameter in the documentation, but I don’t know how to use it. I can’t find any references to it in the `vmware_inventory.py` script.

here is the doc

[https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware\_vm\_inventory\_inventory.html#parameter-keyed\_groups/parent\_group](https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_vm_inventory_inventory.html#parameter-keyed_groups/parent_group)

Thank you for your help 🙂  
Karim.

---

<div class="post-metadata">

**Author:** ![Karim\_A](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/karim_a/32/2655_2.png) [@Karim\_A](https://forum.ansible.com/u/Karim_A)\
**Post date:** [May 23, 2024, 9:50am UTC](https://forum.ansible.com/t/vmware-inventory-and-parent-group-parameter/5935/2 "2024-05-23T09:50:20Z")

</div>

I wasn’t clear enough, I want to retrieve the name of the parent group which is stored in a variable (config.annotation)… but from what I see this parameter does not accept variables, only strings ☹ (  
so unless i create a source per group with the name of the parent hardcoded I don’t see how to do it 🤷
