Problem grouping inventory directory files

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

In a way I expect that to happen. Your files more than likely load in order. poc, poc-app, poc-db.

When in doubt give them names that load in the necessary order. You can’t define children using another group that hasn’t been defined yet.

Often I will prefix files with numbers to get the load order I expect.

​Just add to that last file these two empty entries:

[poc-app]
[poc-db]

The inventories are indeed merged, but before that every single file is
parsed as if it was the sole inventory.

It's a bit ugly now, but that should get addressed post 2.0​

Thanks Serge, that worked. I’ll use that.