Folks,
Trying a recently working playbook on the “devel” branch of ansible, I’m getting an error in the ec2_vol module.
This playbook starts an instance in EC2 using the “ec2” modules, then attaches a volume using the “ec2_vol” module; it worked about a month ago, but it looks like something changed in the data structures for the instance object, or someone is making an erroneous assumption about that object, that leads to an “AttributeError”:
The error is :
failed: [localhost] => ([redacted]) => {“failed”: true, “item”: {[redacted]}, “parsed”: false}
invalid output was: Traceback (most recent call last):
File “/Users/parrott/.ansible/tmp/ansible-1366805780.79-267706100880358/ec2_vol”, line 1050, in
main()
File “/Users/parrott/.ansible/tmp/ansible-1366805780.79-267706100880358/ec2_vol”, line 179, in main
if inst.get_password_data == ‘’:
AttributeError: ‘Instance’ object has no attribute ‘get_password_data’
The “item” is an instance object returned from the ec2 module.
Where should this be fixed? in the “ec2” modules or the “ec2_vol” module?
Thanks,
Rob