You could still use an ansible playbook, but utilize a different callback plugin, to output the data in the method you can use. There is a `json` stdout callback plugin, that can return results of the playbook in JSON format.
On Sat, May 7, 2016 at 12:57 PM, Michael Bright <[email protected]> wrote: > > > I want to do some testing across multiple hosts (of an OpenStack platform) > and I'd really like to base this on Ansible to take advantage of the > inventory management. > > However, I really don't want the standard ansible-playbook output, even in > check mode, I'd like something where I can craft the output. > > I'd like to avoid reinventing the wheel, just like I'd like to avoid > making bad implementation choices but I'm surprised not to find an existing > framework as it seems such a good use case for Ansible. > > So not having found anything it strikes me that I could > - use the Ansible API ... seems to be a no no as there seem to be no > guarantees of stability across releases > - write a python wrapper which invokes ansible via the command-line and > parses the output ... not very nice > > I'm sure I've missed something obvious. > Any pointers? > > Thanks, > Mike. > > > > -- > 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/eb45b27e-4eb4-4791-9a95-ad8e500104de%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/eb45b27e-4eb4-4791-9a95-ad8e500104de%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Matt Martz @sivel sivel.net -- 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/CAD8N0v8dRCsfppPvZ8X%2Byk2WEQH-DYtG%3D2vWx4RH_FqYZ7vGYQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
