# netbox inventory source: set token in a vault

**URL:** <https://forum.ansible.com/t/netbox-inventory-source-set-token-in-a-vault/33836>\
**Category:** Ansible Project\
**Created:** [September 17, 2020, 6:57am UTC](https://forum.ansible.com/t/netbox-inventory-source-set-token-in-a-vault/33836 "2020-09-17T06:57:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![szelga](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/szelga/32/4698_2.png) [@szelga](https://forum.ansible.com/u/szelga)\
**Post date:** [September 17, 2020, 6:57am UTC](https://forum.ansible.com/t/netbox-inventory-source-set-token-in-a-vault/33836/1 "2020-09-17T06:57:12Z")

</div>

hello.  
i’m tinkering with netbox inventory source plugin and noticed , that i must set then auth token either in the inventory file, or in a env variable. but i’d rather have it in a vault file.  
my attempts to import the token variable from an external file (encrypted or not) to inventory.yml have failed so far.  
has anyone successfully done it?
