Ansible v1.6.3 - EC2 module fails when launching

Hi,

I am trying to use the ansible package from PPA on Ubuntu (v1.6.3), however whenever I try and use the ec2 module to startup an ec2 instance into a VPC I get the following error:

failed: [localhost] => {"failed": true, "parsed": false} invalid output was: Traceback (most recent call last): File "/home/ubuntu/.ansible/tmp/ansible-tmp-1403192659.01-129523988649411/ec2", line 2576, in <module> main() File "/home/ubuntu/.ansible/tmp/ansible-tmp-1403192659.01-129523988649411/ec2", line 1160, in main (instance_dict_array, new_instance_ids, changed) = create_instances(module, ec2) File "/home/ubuntu/.ansible/tmp/ansible-tmp-1403192659.01-129523988649411/ec2", line 956, in create_instances d = get_instance_info(inst) File "/home/ubuntu/.ansible/tmp/ansible-tmp-1403192659.01-129523988649411/ec2", line 574, in get_instance_info 'ebs_optimized': inst.ebs_optimized} AttributeError: 'Instance' object has no attribute 'ebs_optimized'

What am I doing wrong. Thank you in advance for your help.

Best regards,

Dayne

It appears that your version of boto installed does not support that option. Upgrading boto should take care of that, and I’ve added the following patch to the devel branch to address this:

https://github.com/ansible/ansible/commit/1c3a654912f5058b527458eef5b94edf40ad43e4

Please let us know if you continue seeing problems related to this. Thanks!