Hello,
I am running Ubuntu 16.04 w/Ansible 2.0.0.2-2ubuntu1.
/etc/ansible$ wget
https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/ec2.py/etc/ansible$ wget
https://raw.githubusercontent.com/ansible/ansible/devel/contrib/inventory/ec2.ini/etc/ansible$ chmod +x /etc/ansible/ec2.py
I have a credentials file in ~/.aws/credentials
/etc/ansible$ ./ec2.py --list
Traceback (most recent call last):
File "./ec2.py", line 1600, in <module>
Ec2Inventory()
File "./ec2.py", line 193, in __init__
self.do_api_calls_update_cache()
File "./ec2.py", line 527, in do_api_calls_update_cache
self.get_rds_instances_by_region(region)
File "./ec2.py", line 633, in get_rds_instances_by_region
client = ec2_utils.boto3_inventory_conn('client', 'rds', region, **self.credentials)
AttributeError: 'module' object has no attribute 'boto3_inventory_conn'
I have installed boto and boto3 via both apt-get and pip with the same result.
I have found a few other versions of ec2.py but none of them work.
Any ideas?
Thanks!
Michael