How gather additional facts by the role?

Hi,

Often, running part of the role using --tags or --start-at-task I need information gathered by previous tasks.

I thought that gathering information e.g. all available gpg keys should not be task but part of ‘gathering facts’.

I’ve already read about tag ‘always’ and probably I can use it to design my role to gather ‘facts’ even when --tags is present.
However, can I somehow ‘register’ gathering additional information by the role and access them later making it every time regardless of --tags or --start-at-task?

Regards,

Jan

you want the setup module:

- setup:

it is what gather_facts actually uses.

I’ve found local facts: http://docs.ansible.com/playbooks_variables.html#local-facts-facts-d

W dniu poniedziałek, 23 marca 2015 15:53:03 UTC+1 użytkownik Brian Coca napisał: