uses_facts in role meta ?

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?

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?

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

Yes, this is what I meant :slight_smile:

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é