redis - Use Redis DB for cache

New in version 1.9.

Synopsis

  • This cache uses JSON formatted, per host records saved in Redis.

Requirements

The below requirements are needed on the local master node that executes this cache.

  • redis (python lib)

Parameters

Parameter Choices/Defaults Configuration Comments
_prefix
ini entries:

[ ]
fact_caching_prefix = VALUE

[defaults ]
= VALUE

env:ANSIBLE_CACHE_PLUGIN_PREFIX
User defined prefix to use when creating the DB entries
_timeout Default:
86400
ini entries:

[defaults ]
fact_caching_timeout = 86400

env:ANSIBLE_CACHE_PLUGIN_TIMEOUT
Expiration timeout for the cache plugin data
_uri
required
ini entries:

[defaults ]
fact_caching_connection = VALUE

env:ANSIBLE_CACHE_PLUGIN_CONNECTION
A colon separated string of connection information for Redis.

Status

Author

  • UNKNOWN

Hint

If you notice any issues in this documentation you can edit this document to improve it.

© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.5/plugins/cache/redis.html