Fact Caching & Access

25 views
Skip to first unread message

Tennis Smith

unread,
Feb 7, 2016, 6:07:59 PM2/7/16
to Ansible Project

Hi,

I"m trying to figure out how roles and playbooks use the fact cache.  Do roles/playbooks have access to all facts in the cache all the time? Or, is access limited to the current host's facts?


For example, if I execute the role 'foo' on the host 'bar', will the facts gathered from host 'baz' be accessible by the 'foo' role during that time?


Put another way, is a fact cache treated like one database available to all contexts?


TIA,

-T

Brian Coca

unread,
Feb 8, 2016, 3:57:30 PM2/8/16
to Ansible Project
Once facts are available, through cache or directly through gathering,
all hosts can access them.



--
Brian Coca

Tennis Smith

unread,
Feb 9, 2016, 11:38:05 AM2/9/16
to Ansible Project
Thanks, Brain (ahem Brian)!
Reply all
Reply to author
Forward
0 new messages