# ec2\_vol\_facts failed

**URL:** <https://forum.ansible.com/t/ec2-vol-facts-failed/24194>\
**Category:** Ansible Project\
**Created:** [April 11, 2017, 7:07pm UTC](https://forum.ansible.com/t/ec2-vol-facts-failed/24194 "2017-04-11T19:07:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafael\_Konrath](https://avatars.discourse-cdn.com/v4/letter/r/a698b9/32.png) [@Rafael\_Konrath](https://forum.ansible.com/u/Rafael_Konrath)\
**Post date:** [April 11, 2017, 7:07pm UTC](https://forum.ansible.com/t/ec2-vol-facts-failed/24194/1 "2017-04-11T19:07:11Z")

</div>

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
