# ansible 2 api usage error

**URL:** <https://forum.ansible.com/t/ansible-2-api-usage-error/22854>\
**Category:** Ansible Project\
**Created:** [October 21, 2016, 12:45pm UTC](https://forum.ansible.com/t/ansible-2-api-usage-error/22854 "2016-10-21T12:45:40Z")\
**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:** [October 21, 2016, 12:45pm UTC](https://forum.ansible.com/t/ansible-2-api-usage-error/22854/1 "2016-10-21T12:45:40Z")

</div>

Below is my code sample to run a simple playbook on a host
