community.mongodb.mongodb_parameter – Change an administrative parameter on a MongoDB server¶
Note
This plugin is part of the community.mongodb collection (version 1.2.1).
To install it use: ansible-galaxy collection install community.mongodb
.
To use it in a playbook, specify: community.mongodb.mongodb_parameter
.
New in version 1.0.0: of community.mongodb
Parameters¶
Notes¶
Note
Requires the pymongo Python package on the remote host, version 2.4.2+.
This can be installed using pip or the OS package manager.
See also http://api.mongodb.org/python/current/installation.html
Examples¶
- name: Set MongoDB syncdelay to 60 (this is an int)
community.mongodb.mongodb_parameter:
param: syncdelay
value: 60
param_type: int
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
after
string
|
success |
value after modification
|
before
string
|
success |
value before modification
|
Authors¶
Loic Blot (@nerzhul)