API 2.0

113 views
Skip to first unread message

Noam Greenberg

unread,
May 7, 2016, 9:57:16 AM5/7/16
to Ansible Project
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 

Matt Martz

unread,
May 7, 2016, 10:39:27 AM5/7/16
to ansible...@googlegroups.com
http://docs.ansible.com/ansible/developing_api.html
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/9300d762-b41c-494b-b242-a9654785d46d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net

Noam Greenberg

unread,
May 7, 2016, 10:54:31 AM5/7/16
to Ansible Project
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 


On Saturday, May 7, 2016 at 5:39:27 PM UTC+3, Matt Martz wrote:
http://docs.ansible.com/ansible/developing_api.html

On Saturday, May 7, 2016, Noam Greenberg <noam.gr...@gmail.com> wrote:
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 

--
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 ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.

Allen Sanabria

unread,
May 9, 2016, 10:51:18 AM5/9/16
to Ansible Project
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

Allen Sanabria

unread,
May 9, 2016, 10:51:19 AM5/9/16
to Ansible Project
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

On Saturday, May 7, 2016 at 7:54:31 AM UTC-7, Noam Greenberg wrote:
Reply all
Reply to author
Forward
0 new messages