ec2_vol_facts failed

Hi All,

I got this error when I ran my ansible playbook, I have some EBS volumes with Not Encrypted sets, and looks like ec2_vol_facts.py failed when ‘encrypted’: volume.encrypted is false.

AILED! => {“changed”: false, “failed”: true, “module_stderr”: “Shared connection to 10.42.8.218 closed.\r\n”, “module_stdout”: “Traceback (most recent call last):\r\n File "/tmp/ansible_GM8k6d/ansible_module_ec2_vol_facts.py", line 142, in \r\n main()\r\n File "/tmp/ansible_GM8k6d/ansible_module_ec2_vol_facts.py", line 138, in main\r\n list_ec2_volumes(connection, module)\r\n File "/tmp/ansible_GM8k6d/ansible_module_ec2_vol_facts.py", line 110, in list_ec2_volumes\r\n volume_dict_array.append(get_volume_info(volume))\r\n File "/tmp/ansible_GM8k6d/ansible_module_ec2_vol_facts.py", line 80, in get_volume_info\r\n ‘encrypted’: volume.encrypted,\r\nAttributeError: ‘Volume’ object has no attribute ‘encrypted’\r\n”, “msg”: “MODULE FAILURE”}

Any idea?

Thanks