# Ansible :  ERROR! Decryption failed

**URL:** <https://forum.ansible.com/t/ansible-error-decryption-failed/23137>\
**Category:** Ansible Project\
**Created:** [November 30, 2016, 3:29pm UTC](https://forum.ansible.com/t/ansible-error-decryption-failed/23137 "2016-11-30T15:29:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swathi\_Cutie](https://avatars.discourse-cdn.com/v4/letter/s/e9bcb4/32.png) [@Swathi\_Cutie](https://forum.ansible.com/u/Swathi_Cutie)\
**Post date:** [November 30, 2016, 3:29pm UTC](https://forum.ansible.com/t/ansible-error-decryption-failed/23137/1 "2016-11-30T15:29:23Z")

</div>

Hi ,

I am a newbie to ansible

When i try to run the ansible-playbook i am getting a decryption failed error

[root@localhost infrastructure]# ansible-playbook -i /home/swathi/Desktop/infrastructure/production/ec2.py vertica\_role.yml  
ERROR! Decryption failed on /home/swathi/Desktop/infrastructure/production/group\_vars/all/vault.yml

ansible --version  
ansible 2.2.0.0  
config file = /home/swathi/Desktop/infrastructure/ansible.cfg  
configured module search path = Default w/o overrides

vi /home/swathi/Desktop/infrastructure/ansible.cfg

[defaults]  
filter\_plugins =./filter\_plugins  
roles\_path = ./roles  
sudo\_user = root  
host\_key\_checking = False  
retry\_files\_enabled = False  
vault\_password\_file = ~/password.txt

Please help!

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [December 1, 2016, 7:47pm UTC](https://forum.ansible.com/t/ansible-error-decryption-failed/23137/2 "2016-12-01T19:47:50Z")

</div>

Do you have the correct password in ~/password.txt  
That file should only contain the password and noting else.
