# Inventori plugin and vault

**URL:** <https://forum.ansible.com/t/inventori-plugin-and-vault/31120>\
**Category:** Ansible Developer\
**Created:** [August 24, 2019, 7:48pm UTC](https://forum.ansible.com/t/inventori-plugin-and-vault/31120 "2019-08-24T19:48:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Claudio\_Papa](https://avatars.discourse-cdn.com/v4/letter/c/3d9bf3/32.png) [@Claudio\_Papa](https://forum.ansible.com/u/Claudio_Papa)\
**Post date:** [August 24, 2019, 7:48pm UTC](https://forum.ansible.com/t/inventori-plugin-and-vault/31120/1 "2019-08-24T19:48:46Z")

</div>

Hi, I'm developing an inventory plugin that contain some ansible vaulted data.  
I don't know how to decode this data, I've tried with dataloader without lucky, what is the most stable way to decode (or encode) yaml data vaulted?

---

<div class="post-metadata">

**Author:** ![Josh\_R](https://avatars.discourse-cdn.com/v4/letter/j/50afbb/32.png) [@Josh\_R](https://forum.ansible.com/u/Josh_R)\
**Post date:** [August 27, 2019, 1:51am UTC](https://forum.ansible.com/t/inventori-plugin-and-vault/31120/2 "2019-08-27T01:51:53Z")

</div>

With inventory plugins, the only way I got it to work is to encode the entire yaml file. It then gets decoded when —vault-Id is passed

---

<div class="post-metadata">

**Author:** ![Serge\_van\_Ginderacht](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Post date:** [August 27, 2019, 2:40am UTC](https://forum.ansible.com/t/inventori-plugin-and-vault/31120/3 "2019-08-27T02:40:28Z")

</div>

Fyi

[https://github.com/ansible/ansible/issues/57012](https://github.com/ansible/ansible/issues/57012)

Serge van Ginderachter
