Hi I have a need to call ansible from python. I was looking at http://docs.ansible.com/ansible/developing_api.html#python-api-2-0 but doc doesn't seem to be very clear.
I need to execute a module or a playbook which ever is easy and want the response of it. Basically this is my custom module which returns me a list of services running on my servers. Please see that I have lots of variables defined in my group_vars have lots of custom roles in my ansible directory (Having directory structure as specified in ansible docs). So I want that when I execute module or playbook from python it should be able to use these vars, roles, etc.. Also I am not sure how can I get the output of executing the api so that I can process that data in python Hope I can find some answers here. Please let me know if I am not clear with requirement. Thanks -- 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/c1494649-dc56-4922-b668-25c6409a9788%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
