1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02: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:
Lars Kellogg-Stedman 2017-09-01 17:57:58 -04:00 committed by scottb
parent 8999b98a09
commit 7093622571

View file

@ -402,6 +402,42 @@ is very very conservative::
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