Hi all,
I’ve got a homegrown app where I’d love to be able to use Ansible’s inventory… I could of course use an external inventory for both, but Ansible’s built-in way of doing inventory and vars is really all I need so it would be great if there’s some way to get Ansible to dump that inventory for extrenal consumption.
One way of doing this that occurred to me was creating an external inventory script that really just queries Ansible (then my other app could just call “./hosts --list” or “./hosts --host foo” for what it needs). I haven’t looked into that too much yet, though, in case there was some easier way to do this that I’m missing.
I figure Ansible commander will also make this trivial, but i’m wondering if there’s a way to do it now
thanks!
matt