# Inventory group of groups dont' work

**URL:** <https://forum.ansible.com/t/inventory-group-of-groups-dont-work/29239>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [December 11, 2018, 3:33pm UTC](https://forum.ansible.com/t/inventory-group-of-groups-dont-work/29239 "2018-12-11T15:33:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alberto\_Eusebi](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@Alberto\_Eusebi](https://forum.ansible.com/u/Alberto_Eusebi)\
**Post date:** [December 11, 2018, 3:33pm UTC](https://forum.ansible.com/t/inventory-group-of-groups-dont-work/29239/1 "2018-12-11T15:33:28Z")

</div>

Hello,  
I’m using AWX 2.1.0. I have an inventory like this:

`  
[groupA]  
host1  
host2

[groupB]  
host3  
host4

[groupAB:children]  
groupA  
groupB

`

I would use “groupAB” in “limit” field on a template but jobs return error:

`  
[WARNING]: Could not match supplied host pattern, ignoring: groupAB

ERROR! Specified hosts and/or --limit does not match any hosts

`

If I use command line and I run the same playbook with this inventory and “–limit=groupAB” option it works.

Is there something wrong in my configuration of is it a bug/limit of AWX?

---

<div class="post-metadata">

**Author:** ![AlanCoding](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alancoding/32/301_2.png) [@AlanCoding](https://forum.ansible.com/u/AlanCoding)\
**Post date:** [December 11, 2018, 4:46pm UTC](https://forum.ansible.com/t/inventory-group-of-groups-dont-work/29239/2 "2018-12-11T16:46:24Z")

</div>

We have had some issues related to this very recently, and I hope they are all resolved now.

To be sure, I replicated your steps, creating an SCM inventory source, then using it in a job template. Using the limit “groupAB” targeted all 4 hosts as expected. Repo I use to clone is here:

[https://github.com/AlanCoding/Ansible-inventory-file-examples/blob/master/static/empty\_group\_with\_children.ini](https://github.com/AlanCoding/Ansible-inventory-file-examples/blob/master/static/empty_group_with_children.ini)

So this looks like a pretty clear case of it being fixed in current development branch of the code, but something that people running older AWX like 2.1.0 may hit, and will definitely notice.

---

<div class="post-metadata">

**Author:** ![Alberto\_Eusebi](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@Alberto\_Eusebi](https://forum.ansible.com/u/Alberto_Eusebi)\
**Post date:** [December 12, 2018, 10:24am UTC](https://forum.ansible.com/t/inventory-group-of-groups-dont-work/29239/3 "2018-12-12T10:24:48Z")

</div>

Thank you Alan for the quick reply.

I noticed only now that there was a couple of minor bumps in AWX in last weeks.  
I’ll try again after upgrading my instance.

Cheers

Alberto
