By way of explanation here's a simple reproducer. - The Inventory is a directory containing two files - each one contains one group and one host # inventory/poc-app [poc-app] host1
# inventory/poc-db [poc-db] host2 - A playbook is created to run a couple of roles for each --- # poc.yml - hosts: poc-app sudo: yes roles: - common - poc - hosts: poc-db sudo: yes roles: - common - poc - A quick test shows I can see both hosts in both groups from the playbook $ ansible-playbook poc.yml --list-hosts playbook: poc.yml play #1 (poc-app): host count=1 host1 play #2 (poc-db): host count=1 host2 - So, now I want to nest those groups into another group, so I create a third file # inventory/poc [poc:children] poc-app poc-db - And repeat my test $ ansible-playbook poc.yml --list-hosts ERROR: child group is not defined: (poc-app) :-( That's not what I'm expecting to happen. The docs say that all the files are merged together into a single inventory. Even the pre-release of the " *AnsibleUp and Running*" book says the same thing on the very last page. Am I making a fundamental mistake here? I'm kind of relying on this to work to fit what I want to do in real life. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/92fa06e0-e47b-45cd-abc2-d7b386a99abb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.