I have python script and have to call ansible playbook and tasks in various phases of script execution. What is preferred way to call ansible playbook or task?
I see python API was suggested to use for internal purpose only. https://docs.ansible.com/ansible/latest/dev_guide/developing_api.html#python-api-example The other way is to use subprocess. Want to know if subprocess can be used reliably ? 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/6b553531-b383-4228-97a4-808ea2ecf57b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
