# Enable fact caching per play(book) ?

**URL:** <https://forum.ansible.com/t/enable-fact-caching-per-play-book/38850>\
**Category:** Ansible Project\
**Created:** [August 17, 2024, 6:27pm UTC](https://forum.ansible.com/t/enable-fact-caching-per-play-book/38850 "2024-08-17T18:27:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [August 17, 2024, 6:27pm UTC](https://forum.ansible.com/t/enable-fact-caching-per-play-book/38850/1 "2024-08-17T18:27:38Z")

</div>

Hii

I would like to use persistent fact caching, for example, with ansible.builtin.jsonfile.  
The docs say that it should be set and configured in ansible.cfg or env vars.

But, I only want to this happen for a specific play(book), not always.

Is there a way to make that happen?

thx!

Dick

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [August 19, 2024, 3:37pm UTC](https://forum.ansible.com/t/enable-fact-caching-per-play-book/38850/2 "2024-08-19T15:37:08Z")

</div>

No
