# Fact Caching & Access

**URL:** <https://forum.ansible.com/t/fact-caching-access/20477>\
**Category:** Ansible Project\
**Created:** [February 7, 2016, 11:07pm UTC](https://forum.ansible.com/t/fact-caching-access/20477 "2016-02-07T23:07:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tennis\_Smith](https://avatars.discourse-cdn.com/v4/letter/t/f05b48/32.png) [@Tennis\_Smith](https://forum.ansible.com/u/Tennis_Smith)\
**Post date:** [February 7, 2016, 11:07pm UTC](https://forum.ansible.com/t/fact-caching-access/20477/1 "2016-02-07T23:07:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [February 8, 2016, 8:57pm UTC](https://forum.ansible.com/t/fact-caching-access/20477/2 "2016-02-08T20:57:26Z")

</div>

Once facts are available, through cache or directly through gathering,  
all hosts can access them.

---

<div class="post-metadata">

**Author:** ![Tennis\_Smith](https://avatars.discourse-cdn.com/v4/letter/t/f05b48/32.png) [@Tennis\_Smith](https://forum.ansible.com/u/Tennis_Smith)\
**Post date:** [February 9, 2016, 4:38pm UTC](https://forum.ansible.com/t/fact-caching-access/20477/3 "2016-02-09T16:38:05Z")

</div>

Thanks, Brain (ahem Brian)!
