# right usage of ansible v2 api with python

**URL:** <https://forum.ansible.com/t/right-usage-of-ansible-v2-api-with-python/23083>\
**Category:** Ansible Project\
**Created:** [November 23, 2016, 5:10pm UTC](https://forum.ansible.com/t/right-usage-of-ansible-v2-api-with-python/23083 "2016-11-23T17:10:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oguz\_Yarimtepe](https://avatars.discourse-cdn.com/v4/letter/o/d07c76/32.png) [@Oguz\_Yarimtepe](https://forum.ansible.com/u/Oguz_Yarimtepe)\
**Post date:** [November 23, 2016, 5:10pm UTC](https://forum.ansible.com/t/right-usage-of-ansible-v2-api-with-python/23083/1 "2016-11-23T17:10:26Z")

</div>

I am having trouble about finding the right syntax for running a playbook with ansible api below is my code
