On 25 July 2014 15:56, Josh Smift <[email protected]> wrote: > (1) Does this seem like a reasonable approach? >
Seems reasonable yes. I'd actually love to see a framework for such things. Shouldn't even be ansible specific. > > (2) If so, is there an easy way to dump the contents of an > ansible.inventory.Inventory object into the JSON that Ansible itself > wants to consume? I didn't see an obvious method for that, but might > have missed something. > nothing in ansible core. I have been hacking on a script that does just that, and I updated it to the inventory refactor of past weeks, but atm it's not bug free yet, i need to give it some more love: https://github.com/ginsys/ansible-plugins/blob/devel/bin/ansible-inventory Could also be used to generate a cached json file. Serge -- 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/CAEhzMJBUUtbU2Hj%3D2JGBmhtHf3gS81FqtCFdJ6WgRoPW7MKcsA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
