Python API documentation

I would like to provision an ec2 instance using Ansible’s Python API. I was wondering how local_action can be used in the API. I couldn’t find any Python API documentation link on the Ansible site. Any link to the API documentation would be helpful.

/usr/bin/ansible and /usr/bin/ansible-playbook are great places to start and are both very simple programs using the API.

Hello Michael, quick question.

I was told in IRC channel that in ansible 2.0, there will be no Runner class and hence the Python API will change alot. What is the best example to look at to use Python API w.r.t. version 2.0?

Hope to hear from you soon.

Usman

docs for new api
http://docs.ansible.com/ansible/developing_api.html#python-api-2-0