Hi,
you are not doing anything wrong here. This is in fact a current limitation that you have to find a solution to “work around” based on your needs.
Here at our site, we have a hostgroup setup like this:
- RHEL servers
- RHEL servers/webservers
- RHEL servers/webservers/dev
- RHEL servers/webservers/testing
- RHEL servers/webservers/production
At least for our specific needs, this has proven to be the best solution for this problem. There has been some discussion around rethinking hostgroups (see here), but I do not know if there is anything currently in the making based on that.