On this page
mongodb - Use MongoDB for caching
New in version 2.5.
Synopsis
- This cache uses per host records saved in MongoDB.
Requirements
The below requirements are needed on the local master node that executes this cache.
- pymongo>=3
Parameters
Parameter | Choices/Defaults | Configuration | Comments |
---|---|---|---|
_prefix |
ini entries:
[defaults ]
env:ANSIBLE_CACHE_PLUGIN_PREFIX
|
User defined prefix to use when creating the DB entries
|
|
_timeout
integer
|
Default:
86400
|
ini entries:
[defaults ]
env:ANSIBLE_CACHE_PLUGIN_TIMEOUT
|
Expiration timeout in seconds for the cache plugin data
|
_uri |
ini entries:
[defaults ]
env:ANSIBLE_CACHE_PLUGIN_CONNECTION
|
MongoDB Connection String URI
|
Status
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
Maintenance
This cache is flagged as community which means that it is maintained by the Ansible Community. See Module Maintenance & Support for more info.
For a list of other modules that are also maintained by the Ansible Community, see here.
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.6/plugins/cache/mongodb.html