# How does filter of setuo module (facts) run ?

**URL:** <https://forum.ansible.com/t/how-does-filter-of-setuo-module-facts-run/23513>\
**Category:** Ansible Project\
**Created:** [January 20, 2017, 8:01am UTC](https://forum.ansible.com/t/how-does-filter-of-setuo-module-facts-run/23513 "2017-01-20T08:01:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![web.cvcc](https://avatars.discourse-cdn.com/v4/letter/w/91b2a8/32.png) [@web.cvcc](https://forum.ansible.com/u/web.cvcc)\
**Post date:** [January 20, 2017, 8:01am UTC](https://forum.ansible.com/t/how-does-filter-of-setuo-module-facts-run/23513/1 "2017-01-20T08:01:57Z")

</div>

Hi all

I have a poor performance environement and running setup on it get a lot of time.

I know i can disable gathering fact with **gather\_facts: False**

I’m trying this and it’s work fine

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [January 20, 2017, 3:44pm UTC](https://forum.ansible.com/t/how-does-filter-of-setuo-module-facts-run/23513/2 "2017-01-20T15:44:03Z")

</div>

It's a return filter, all the facts will run but only the ones in the filter is returned.

To speed tings up check out fact caching[1].  
Then you can have one playbook that only gather facts when needed, and the other playbooks don't need to gather facts since they will use the cache.

[1] [https://docs.ansible.com/ansible/playbooks\_variables.html#fact-caching](https://docs.ansible.com/ansible/playbooks_variables.html#fact-caching)
