# Custom facts modules and tags

**URL:** <https://forum.ansible.com/t/custom-facts-modules-and-tags/12633>\
**Category:** Ansible Project\
**Created:** [April 5, 2013, 4:29pm UTC](https://forum.ansible.com/t/custom-facts-modules-and-tags/12633 "2013-04-05T16:29:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dale](https://avatars.discourse-cdn.com/v4/letter/d/ecd19e/32.png) [@Dale](https://forum.ansible.com/u/Dale)\
**Post date:** [April 5, 2013, 4:29pm UTC](https://forum.ansible.com/t/custom-facts-modules-and-tags/12633/1 "2013-04-05T16:29:03Z")

</div>

Hi,

I've made a site\_facts module that adds some facts I use in my  
playbooks. I'm also using tags to sometimes run subsets of my  
playbooks, which I believe is the primary motivation for tags. My  
problem comes in when I want to use some of the facts added by my  
site\_facts module when running only a subset of my tasks. For  
example:

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [April 5, 2013, 9:01pm UTC](https://forum.ansible.com/t/custom-facts-modules-and-tags/12633/2 "2013-04-05T21:01:25Z")

</div>

You could tag it with ‘facts’ and always remember to include the ‘facts’ tag.

---

<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:** [April 5, 2013, 9:11pm UTC](https://forum.ansible.com/t/custom-facts-modules-and-tags/12633/3 "2013-04-05T21:11:16Z")

</div>

I have a similar issue, though not totaaly related. The extra facts are things I can calculate ofline (primarily network information, ip addresses, based on a preconfigured vlan), without touching the hosts first. I hope to solve this with an inventory plugin.
