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!!!
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ā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