# not able to use variables in plugins.

**URL:** <https://forum.ansible.com/t/not-able-to-use-variables-in-plugins/34365>\
**Category:** Ansible Project\
**Created:** [December 22, 2020, 3:45pm UTC](https://forum.ansible.com/t/not-able-to-use-variables-in-plugins/34365 "2020-12-22T15:45:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pravin\_V](https://avatars.discourse-cdn.com/v4/letter/p/c68b51/32.png) [@Pravin\_V](https://forum.ansible.com/u/Pravin_V)\
**Post date:** [December 22, 2020, 3:45pm UTC](https://forum.ansible.com/t/not-able-to-use-variables-in-plugins/34365/1 "2020-12-22T15:45:52Z")

</div>

Hello All,  
I’m testing netbox inventory plugin locally. Below is the yml file. If I specify the api\_endpoint and token directly like-  
api\_endpoint: [https://1.1.1.1](https://1.1.1.1)  
token: 2323123123  
This way it is working properly. But it’s not fetching the details from the variables files.

vars.yml
