mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-23 14:31:44 -07:00
docs: add fact caching directives to intro_configuration (#27040)
the fact_caching* configuration directives were not listed in intro_configuration.rst.
This commit is contained in:
parent
8999b98a09
commit
7093622571
1 changed files with 36 additions and 0 deletions
|
@ -402,6 +402,42 @@ is very very conservative::
|
||||||
|
|
||||||
forks = 5
|
forks = 5
|
||||||
|
|
||||||
|
.. _fact_caching:
|
||||||
|
|
||||||
|
fact_caching
|
||||||
|
============
|
||||||
|
|
||||||
|
This option allows you to configure fact caching. When a fact cache
|
||||||
|
is enabled and there is valid data for a host, Ansible will use that rather than running an implicit ``setup`` job on a remote host.
|
||||||
|
|
||||||
|
The value of this option should be the name of a cache plugin.
|
||||||
|
Current versions of Ansible include ``redis`` and ``jsonfile``::
|
||||||
|
|
||||||
|
fact_caching = jsonfile
|
||||||
|
|
||||||
|
.. _fact_caching_connection:
|
||||||
|
|
||||||
|
fact_caching_connection
|
||||||
|
=======================
|
||||||
|
|
||||||
|
This option tells Ansible where to cache facts. The value is plugin
|
||||||
|
dependent. For the ``jsonfile`` plugin, it should be a path to a
|
||||||
|
local directory. For the ``redis`` plugin, the value is a
|
||||||
|
``host:port:database`` triplet::
|
||||||
|
|
||||||
|
fact_caching_connection = localhost:6379:0
|
||||||
|
|
||||||
|
.. _fact_caching_timeout:
|
||||||
|
|
||||||
|
fact_caching_timeout
|
||||||
|
====================
|
||||||
|
|
||||||
|
This option tells Ansible when to expire values from the cache.
|
||||||
|
Setting this value to 0 effectively disables expiry, and a positive
|
||||||
|
value is a TTL in seconds::
|
||||||
|
|
||||||
|
fact_caching_timeout = 86400
|
||||||
|
|
||||||
.. _fact_path:
|
.. _fact_path:
|
||||||
|
|
||||||
fact_path
|
fact_path
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue