community.mongodb.mongodb_oplog – Resizes the MongoDB oplog.¶
Note
This plugin is part of the community.mongodb collection (version 1.2.0).
To install it use: ansible-galaxy collection install community.mongodb
.
To use it in a playbook, specify: community.mongodb.mongodb_oplog
.
New in version 1.0.0: of community.mongodb
Synopsis¶
Resizes the MongoDB oplog.
This module should only be used with MongoDB 3.6 and above.
Old MongoDB versions should use an alternative method.
Consult https://docs.mongodb.com/manual/tutorial/change-oplog-size for further info.
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 http://api.mongodb.org/python/current/installation.html
Examples¶
- name: Resize oplog to 16 gigabytes, or 16000 megabytes
community.mongodb.mongodb_oplog:
oplog_size_mb: 16000
- name: Resize oplog to 8 gigabytes and compact secondaries to reclaim space
community.mongodb.mongodb_oplog:
oplog_size_mb: 8000
compact: true
Return Values¶
Common return values are documented here, the following are the fields unique to this module:
Authors¶
Rhys Campbell (@rhysmeister)