I’m either missing a point or being insufferably pedantic, but I find the “must be unique” phrase confusing. Names of groups (and hosts) are unique, regardless of the author’s intent. (See this discussion from last month for example.) A given string can be used as a group name (or host name) any number of times in a single or multiple inventory sources; each such instance contributes to the definition of a single group (or host).
utoddl
(Todd Lewis)
5
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Question: How to use the same host for multiple groups? | 11 | 519 | January 14, 2020 | |
| Ansible inventory duplicate hosts in different groups - Ansible picks the last one from the duplicates | 2 | 247 | August 17, 2020 | |
| Bug/limitation with hosts in multiple groups | 4 | 34 | May 15, 2012 | |
| Ansible also trying to reach the groupname as a host | 5 | 18 | November 7, 2012 | |
| Potential bug/solution with Inventory.groups_list() | 4 | 48 | April 13, 2014 |