# Inconsistency between cli and API

**URL:** <https://forum.ansible.com/t/inconsistency-between-cli-and-api/13750>\
**Category:** Ansible Project\
**Created:** [October 23, 2013, 1:10pm UTC](https://forum.ansible.com/t/inconsistency-between-cli-and-api/13750 "2013-10-23T13:10:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miroslav\_Suchy](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Miroslav\_Suchy](https://forum.ansible.com/u/Miroslav_Suchy)\
**Post date:** [October 23, 2013, 1:10pm UTC](https://forum.ansible.com/t/inconsistency-between-cli-and-api/13750/1 "2013-10-23T13:10:17Z")

</div>

Hi,  
I’m getting different results, when using cli command ansible-playbook and directly use python API.

I’m not sure if this is PEBKAC or bug in ansible. Here is my minimal reproducer:

reproducer.yml:

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [October 23, 2013, 6:49pm UTC](https://forum.ansible.com/t/inconsistency-between-cli-and-api/13750/2 "2013-10-23T18:49:01Z")

</div>

I’ll apologize here in saying I don’t have time to help with playbook API questions.

Generally speaking, the REST API to AWX is something we do support, as are /usr/bin/ansible and /usr/bin/ansible-playbook.

The python API is a thing, sure, but it’s basically documented by the way the two ansible CLI programs use it.
