I have a freshly installed Ubuntu 14.04 LTS instance running ansible 1.5.4 and python 2.7.6
In general my ansible playbooks are running normally, using modules such as apt, gem, pip, authorized_key, user, etc.
Now I am trying to use AWS dynamic inventory features. I fetched ec2.py using
wget https://raw.github.com/ansible/ansible/devel/plugins/inventory/ec2.py
and ec2.ini using
wget https://raw.github.com/ansible/ansible/devel/plugins/inventory/ec2.ini
but have not made any mods to either file.
When I try the test command provided, I receive the following error:
Try running the dynamic inventory by itself to see what output is generated.
./ec2.py
Thanks Michael. That enabled me to debug the problem. Two things: I needed to “pip install boto” and “export EC2_INI_PATH=/etc/ansible/ec2.ini”.
works now!
-Bruce
Bruce,
You may want to run a more recent version Ansible. There a a lot of parameters need 1.6, and even the current release 1.7.2 is starting to fall behind for AWS stuff. For instance, spinning up a Encrypted ESB volume requires 1.8. Here’s a link to where this is discussed. http://docs.ansible.com/intro_installation.html
-Christian
No closing quotation has little to do with AWS parameter usage, but error handling is greatly improved in numerous cases in the 1.7.X series.