HI,
I have made a AWX setup and when I tried to make a inventory sync with my AWS Credentials , I am getting the error as mentioned below ,
2018-06-27 13:42:06,710 INFO awx.main.commands.inventory_import Updating inventory 2: AWS-Inventory
2018-06-27 13:42:06,758 INFO awx.main.commands.inventory_import Reading Ansible inventory source: /opt/awx/embedded/lib/python2.7/site-packages/awx/plugins/inventory/ec2.py
Traceback (most recent call last):
File “/opt/awx/bin/awx-manage”, line 11, in
sys.exit(manage())
File “/opt/awx/embedded/lib/python2.7/site-packages/awx/init.py”, line 109, in manage
execute_from_command_line(sys.argv)
File “/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/init.py”, line 364, in execute_from_command_line
utility.execute()
File “/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/init.py”, line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File “/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py”, line 283, in run_from_argv
self.execute(*args, **cmd_options)
File “/opt/awx/embedded/lib64/python2.7/site-packages/django/core/management/base.py”, line 330, in execute
output = self.handle(*args, **options)
File “/opt/awx/embedded/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py”, line 998, in handle
self.is_custom)
File “/opt/awx/embedded/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py”, line 240, in load_inventory_source
is_custom=is_custom).load()
File “/opt/awx/embedded/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py”, line 176, in load
data = self.command_to_json(base_args + [‘–list’])
File “/opt/awx/embedded/lib/python2.7/site-packages/awx/main/management/commands/inventory_import.py”, line 160, in command_to_json
self.method, proc.returncode, stdout, stderr))
RuntimeError: ansible-inventory failed (rc=1) with stdout:
stderr:
[WARNING]: * Failed to parse /opt/awx/embedded/lib/python2.7/site-
packages/awx/plugins/inventory/ec2.py with script plugin: problem running
/opt/awx/embedded/lib/python2.7/site-packages/awx/plugins/inventory/ec2.py
–list ([Errno 13] Permission denied)
[WARNING]: * Failed to parse /opt/awx/embedded/lib/python2.7/site-
packages/awx/plugins/inventory/ec2.py with ini plugin:
/opt/awx/embedded/lib/python2.7/site-packages/awx/plugins/inventory/ec2.py:3:
Error parsing host definition ‘’‘’': No closing quotation
[WARNING]: Unable to parse /opt/awx/embedded/lib/python2.7/site-
packages/awx/plugins/inventory/ec2.py as an inventory source
ERROR! No inventory was parsed, please check your configuration and options.
I tried to change the ansible config set up with the value “#unparsed_is_failed = true” but no success .Can someone kindly help me in this .