You can write a dynamic inventory script which allows you to specify the inventory in another format, or fetch it from a configuration management database.
I'm not sure if this is exactly what you want, but I wrote one that lets you specify servers and which parent groups they belong in; basically the inverse of the normal inventory. The code is here https://github.com/pmarkham/ansible-inventory-inverted. -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2f83e2eb-2d87-41cb-9e12-8717a5ebcfe8%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
