fact caching

Storing gathered facts between runs, so later plays can reuse them instead of collecting them again from every host.

In more detail

It is configured with a cache plugin and a timeout in ansible.cfg. It helps large fleets, but cached facts can be stale, so adopt it with a clear policy on how long values may be trusted. Inventory plugins have a separate cache setting for host lists.

Related terms

Taught in

References