Hi all
i wander if any one have a link or book about the Ansible 2.0 API (python )
function , param etc … something
i try to run a playbook from python and i dont find any doc that explain how to or witch function to use
Thanks In advance
Hi all
i wander if any one have a link or book about the Ansible 2.0 API (python )
function , param etc … something
i try to run a playbook from python and i dont find any doc that explain how to or witch function to use
Thanks In advance
thanks
this doc is nice ( but poorly ) as i expect for some good doc this is why i ask
if you will look let say “boto3” doc you have all the function and output etc …
i ask if ansible have something like this ?
and if not i try to just run playbook from my pythonk script and wonder if there and how-to ?
Thanks
Noam, I have a repo where I am using the api to run my playbooks.
You can look at this one as an example…
test_kinesis_stream.py
I have a repo where I include tests for one of my modules that uses the 2.0 API. This is not documentation, but you can use it as an example.
https://github.com/linuxdynasty/ld-ansible-modules/blob/master/test/cloud/amazon/test_kinesis_stream.py