How gather additional facts by the role?

49 views
Skip to first unread message

Jan Koprowski

unread,
Mar 23, 2015, 9:49:18 AM3/23/15
to ansible...@googlegroups.com
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

Brian Coca

unread,
Mar 23, 2015, 10:53:03 AM3/23/15
to ansible...@googlegroups.com
you want the setup module:

- setup:

it is what gather_facts actually uses.


--
Brian Coca

Jan Koprowski

unread,
Mar 30, 2015, 3:00:46 AM3/30/15
to ansible...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages