# uses\_facts in role meta ?

**URL:** <https://forum.ansible.com/t/uses-facts-in-role-meta/14382>\
**Category:** Ansible Developer\
**Created:** [January 20, 2014, 10:50am UTC](https://forum.ansible.com/t/uses-facts-in-role-meta/14382 "2014-01-20T10:50:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rene\_Moser](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Post date:** [January 20, 2014, 10:50am UTC](https://forum.ansible.com/t/uses-facts-in-role-meta/14382/1 "2014-01-20T10:50:44Z")

</div>

Hi

It may be useful to know if a role depends on facts. IMHO this is not yet implemented.

# roles/meta/main.yml

uses\_facts: yes

Feedback?

---

<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:** [January 20, 2014, 12:52pm UTC](https://forum.ansible.com/t/uses-facts-in-role-meta/14382/2 "2014-01-20T12:52:15Z")

</div>

So if this were to match up, it would be better labelled as “gather\_facts: True”, and then could force fact gathering in theory.

However, a role might really depend on another fact module than setup, which this wouldn’t apply to.

So perhaps it’s better left as a documentation item?

---

<div class="post-metadata">

**Author:** ![Rene\_Moser](https://avatars.discourse-cdn.com/v4/letter/r/7bcc69/32.png) [@Rene\_Moser](https://forum.ansible.com/u/Rene_Moser)\
**Post date:** [January 23, 2014, 11:46am UTC](https://forum.ansible.com/t/uses-facts-in-role-meta/14382/3 "2014-01-23T11:46:52Z")

</div>

> So perhaps it’s better left as a documentation item?

Yes, this is what I meant 🙂

Adding an item (with good name) for “this role needs gather\_facts to be True” in role/meta/main.yml and show it on galaxy would be great.

Managing this in the playbook by hand is fine for me.

Regards  
René
