Was just starting to experiment with this but any particular reason ec2_external_inventory.py is excluded in the latest dev branch? Also executing ansible with the older example script does not help. Its also detailed in the documentation here - http://ansible.github.com/api.html#external-inventory
I run into…
Traceback (most recent call last):
File “./ec2_external_inventory.py”, line 376, in
Ec2Inventory()
File “./ec2_external_inventory.py”, line 131, in init
self.read_settings()
File “./ec2_external_inventory.py”, line 175, in read_settings
configRegions = config.get(‘ec2’, ‘regions’)
File “/usr/lib/python2.6/ConfigParser.py”, line 532, in get
raise NoSectionError(section)
ConfigParser.NoSectionError: No section: ‘ec2’
This is after installing python-argparse on python2.6 (This should probably be included in the install instructions that python<2.7 does not support argparse - You have to install the module separately).