# How to filter plugins access vars from host

**URL:** <https://forum.ansible.com/t/how-to-filter-plugins-access-vars-from-host/34075>\
**Category:** Ansible Project\
**Created:** [October 21, 2020, 2:49pm UTC](https://forum.ansible.com/t/how-to-filter-plugins-access-vars-from-host/34075 "2020-10-21T14:49:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafael\_Tomelin](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Rafael\_Tomelin](https://forum.ansible.com/u/Rafael_Tomelin)\
**Post date:** [October 21, 2020, 2:49pm UTC](https://forum.ansible.com/t/how-to-filter-plugins-access-vars-from-host/34075/1 "2020-10-21T14:49:16Z")

</div>

Hi,

I create a new filter plugin but the plugin needs to get vars from the host. How to get the vars in python filter plugins?

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [October 21, 2020, 2:53pm UTC](https://forum.ansible.com/t/how-to-filter-plugins-access-vars-from-host/34075/2 "2020-10-21T14:53:27Z")

</div>

Filter plugins must be passed data, they do not have access to anything other than what they are given.
