# Vault of inventory file

**URL:** <https://forum.ansible.com/t/vault-of-inventory-file/15471>\
**Category:** Ansible Project\
**Created:** [June 16, 2014, 10:04am UTC](https://forum.ansible.com/t/vault-of-inventory-file/15471 "2014-06-16T10:04:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonardo\_M](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Leonardo\_M](https://forum.ansible.com/u/Leonardo_M)\
**Post date:** [June 16, 2014, 10:04am UTC](https://forum.ansible.com/t/vault-of-inventory-file/15471/1 "2014-06-16T10:04:01Z")

</div>

I would like to vault/encrypt my inventory file since I store for some of my host both ansible\_ssh\_pass and ansible\_sudo\_pass. Is this is possible? Is there a way to move ansible\_ssh\_pass and ansible\_sudo\_pass in the group\_vars directory so I can vault the the file in the directory?

Best regards, L.

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [June 16, 2014, 3:45pm UTC](https://forum.ansible.com/t/vault-of-inventory-file/15471/2 "2014-06-16T15:45:12Z")

</div>

Vault encryption of inventory is not currently supported.

For a more complex setup like this, you should definitely move the variables into your group\_vars and hosts\_vars directory. All inventory variables should move over to those files without any issues.
