# AWX Inventory encryption

**URL:** <https://forum.ansible.com/t/awx-inventory-encryption/36597>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [May 5, 2022, 8:18am UTC](https://forum.ansible.com/t/awx-inventory-encryption/36597 "2022-05-05T08:18:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Neufer](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@Christopher\_Neufer](https://forum.ansible.com/u/Christopher_Neufer)\
**Post date:** [May 5, 2022, 8:18am UTC](https://forum.ansible.com/t/awx-inventory-encryption/36597/1 "2022-05-05T08:18:07Z")

</div>

Hello!

The last few days i tried to encrypt the inventory files so hide the Kerberos authentication settings.  
I have createt group\_vars/secrets.yml  
I tried to encrypt only the password and also encrypted the whole file.  
When i encrypt the whole file, awx cant load the inventory.  
When encrypting online the string i can import the inventory but playbooks wont decrypt the vault string.

I dont know what i should do now. Anyone got any advices ?

Thanks in advance !  
Chris

---

<div class="post-metadata">

**Author:** ![Donny\_Ta](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/donny_ta/32/4921_2.png) [@Donny\_Ta](https://forum.ansible.com/u/Donny_Ta)\
**Post date:** [May 5, 2022, 10:36pm UTC](https://forum.ansible.com/t/awx-inventory-encryption/36597/2 "2022-05-05T22:36:54Z")

</div>

Hey Chris,

Do you have your template/job set with the vault creds to decrypt the string?

This should assigned to Credentials in the template.

Thank you,  
Donny

---

<div class="post-metadata">

**Author:** ![Christopher\_Neufer](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@Christopher\_Neufer](https://forum.ansible.com/u/Christopher_Neufer)\
**Post date:** [May 6, 2022, 10:06am UTC](https://forum.ansible.com/t/awx-inventory-encryption/36597/3 "2022-05-06T10:06:00Z")

</div>

Hey Donny,  
yes, i have assigned the credentialtype “Vault” with the right passwort to my template.

AWX is telling me the password is incorrect. In this errormessage i can see my encrypted string.

Cheers  
Chris
