Why isn't my inventory getting parsed?

My inventory sync from AWS works, but then when I try to run a template-job it fails with (edited for conciseness):
[WARNING]: * Failed to parse /tmp/awx_104_5da5kowv/tmp4eqay1gx with ini
plugin: host range must be begin:end or begin:end:step
[WARNING]: * Failed to parse /tmp/awx_104_5da5kowv/tmp4eqay1gx with yaml
plugin: We were unable to read either as JSON nor YAML, these are the errors we
got from each: JSON: Expecting value: line 1 column 1 (char 0) Syntax Error
while loading YAML. did not find expected key The error appears to be in
ā€˜/tmp/awx_104_5da5kowv/tmp4eqay1gxā€™: line 3, column 846, but may be elsewhere
in the file depending on the exact syntax problem. The offending line appears
to be: # -- coding: utf-8 -- print('{ā€œallā€: {ā€œhostsā€: , ā€œchildrenā€: ā€¦

and it looks like the inventory does start with:
#! /usr/bin/env python

-- coding: utf-8 --

So I guess itā€™s a script, which makes me think that the script plugin is not enabled for inventories, but I canā€™t imagine why.

Any thoughts would be greatly appreciated.
Thanks!!!

So a plain inventory update works, but an inventory update triggered by a job launch does not?

What ansible version is running? @Alan Rominger may be curious about this

Well, sorta. An inventory update works, but the inventory supplied to an ansible run seems to be a python script that cannot be parsed . . . Is there an equivalent to ā€œenable_plugins = scriptā€ for ansible tower? it seems that the script plugin is not enabled

I added script to enabled_plugins in my ansibe.cfg and itā€™s working now. Iā€™m surprised I had to add that.

Thanks!!

Iā€™m wondering if you are running devel code but using older release containers because aws inventory source should now be using a plugin, not a script since the inventory scripts have now been removed: https://github.com/ansible/awx/pull/6911

Now the aws type inventory should use the plugin from the collection we vendor in the container.

Is 13.0 the latest?
bash-4.2$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
95f0983e5218 ansible/awx:13.0.0 ā€œtini ā€“ /usr/bin/laā€¦ā€ 4 days ago Up 22 hours 8052/tcp awx_task
90022c2fa20e ansible/awx:13.0.0 ā€œtini ā€“ /bin/sh -c ā€¦ā€ 6 days ago Up 22 hours 0.0.0.0:80->8052/tcp awx_web

Or should I be using https://hub.docker.com/r/ansible/awx_task ?