community.mongodb.mongodb (1.6.1) — cache

Use MongoDB for caching

| "added in version" 1.0.0 of community.mongodb"

Authors: Matt Martz (@sivel)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.mongodb:==1.6.1


Add to requirements.yml

  collections:
    - name: community.mongodb
      version: 1.6.1

Description

This cache uses per host records saved in MongoDB.


Requirements

Inputs

    
_uri:
    description:
    - MongoDB Connection String URI
    env:
    - name: ANSIBLE_CACHE_PLUGIN_CONNECTION
    ini:
    - key: fact_caching_connection
      section: defaults
    required: false

_prefix:
    default: ansible_facts
    description: User defined prefix to use when creating the DB entries
    env:
    - name: ANSIBLE_CACHE_PLUGIN_PREFIX
    ini:
    - key: fact_caching_prefix
      section: defaults

_timeout:
    default: 86400
    description: Expiration timeout in seconds for the cache plugin data. Set to 0 to
      never expire
    env:
    - name: ANSIBLE_CACHE_PLUGIN_TIMEOUT
    ini:
    - key: fact_caching_timeout
      section: defaults
    type: integer