Inconsistency between cli and API

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:

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.