# Why isn't my inventory getting parsed?

**URL:** <https://forum.ansible.com/t/why-isnt-my-inventory-getting-parsed/33313>\
**Category:** AWX Project\
**Tags:** aws\
**Created:** [July 2, 2020, 7:08pm UTC](https://forum.ansible.com/t/why-isnt-my-inventory-getting-parsed/33313 "2020-07-02T19:08:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guy\_Matz1](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Post date:** [July 2, 2020, 7:08pm UTC](https://forum.ansible.com/t/why-isnt-my-inventory-getting-parsed/33313/1 "2020-07-02T19:08:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kdelee](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kdelee/32/193_2.png) [@kdelee](https://forum.ansible.com/u/kdelee)\
**Post date:** [July 2, 2020, 8:13pm UTC](https://forum.ansible.com/t/why-isnt-my-inventory-getting-parsed/33313/2 "2020-07-02T20:13:22Z")

</div>

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

What ansible version is running? [@Alan Rominger](mailto:arominge@redhat.com) may be curious about this

---

<div class="post-metadata">

**Author:** ![Guy\_Matz1](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Post date:** [July 6, 2020, 4:20pm UTC](https://forum.ansible.com/t/why-isnt-my-inventory-getting-parsed/33313/3 "2020-07-06T16:20:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Guy\_Matz1](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Post date:** [July 6, 2020, 5:15pm UTC](https://forum.ansible.com/t/why-isnt-my-inventory-getting-parsed/33313/4 "2020-07-06T17:15:59Z")

</div>

I added script to enabled\_plugins in my ansibe.cfg and it’s working now. I’m surprised I had to add that.

Thanks!!

---

<div class="post-metadata">

**Author:** ![kdelee](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/kdelee/32/193_2.png) [@kdelee](https://forum.ansible.com/u/kdelee)\
**Post date:** [July 6, 2020, 5:25pm UTC](https://forum.ansible.com/t/why-isnt-my-inventory-getting-parsed/33313/5 "2020-07-06T17:25:17Z")

</div>

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](https://github.com/ansible/awx/pull/6911)

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

---

<div class="post-metadata">

**Author:** ![Guy\_Matz1](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@Guy\_Matz1](https://forum.ansible.com/u/Guy_Matz1)\
**Post date:** [July 7, 2020, 4:24pm UTC](https://forum.ansible.com/t/why-isnt-my-inventory-getting-parsed/33313/6 "2020-07-07T16:24:28Z")

</div>

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](https://hub.docker.com/r/ansible/awx_task) ?
