{"id":39747069,"url":"https://github.com/rolehippie/mongodb","last_synced_at":"2026-01-18T11:22:08.201Z","repository":{"id":37865072,"uuid":"322590021","full_name":"rolehippie/mongodb","owner":"rolehippie","description":"Ansible role to install and configure a MongoDB object/document-oriented database","archived":false,"fork":false,"pushed_at":"2026-01-15T06:05:45.000Z","size":340,"stargazers_count":3,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-15T12:43:21.415Z","etag":null,"topics":["ansible","ansible-role","hacktoberfest","role"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rolehippie.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-12-18T12:32:21.000Z","updated_at":"2026-01-15T06:05:47.000Z","dependencies_parsed_at":"2025-11-27T09:08:10.851Z","dependency_job_id":null,"html_url":"https://github.com/rolehippie/mongodb","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/rolehippie/mongodb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolehippie%2Fmongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolehippie%2Fmongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolehippie%2Fmongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolehippie%2Fmongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rolehippie","download_url":"https://codeload.github.com/rolehippie/mongodb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolehippie%2Fmongodb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28535162,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","hacktoberfest","role"],"created_at":"2026-01-18T11:22:08.081Z","updated_at":"2026-01-18T11:22:08.173Z","avatar_url":"https://github.com/rolehippie.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mongodb\n\n[![Source Code](https://img.shields.io/badge/github-source%20code-blue?logo=github\u0026logoColor=white)](https://github.com/rolehippie/mongodb)\n[![General Workflow](https://github.com/rolehippie/mongodb/actions/workflows/general.yml/badge.svg)](https://github.com/rolehippie/mongodb/actions/workflows/general.yml)\n[![Readme Workflow](https://github.com/rolehippie/mongodb/actions/workflows/docs.yml/badge.svg)](https://github.com/rolehippie/mongodb/actions/workflows/docs.yml)\n[![Galaxy Workflow](https://github.com/rolehippie/mongodb/actions/workflows/galaxy.yml/badge.svg)](https://github.com/rolehippie/mongodb/actions/workflows/galaxy.yml)\n[![License: Apache-2.0](https://img.shields.io/github/license/rolehippie/mongodb)](https://github.com/rolehippie/mongodb/blob/master/LICENSE)\n[![Ansible Role](https://img.shields.io/badge/role-rolehippie.mongodb-blue)](https://galaxy.ansible.com/rolehippie/mongodb)\n\nAnsible role to install and configure a MongoDB object/document-oriented database.\n\n## Sponsor\n\nBuilding and improving this Ansible role have been sponsored by my current and previous employers like **[Cloudpunks GmbH](https://cloudpunks.de)** and **[Proact Deutschland GmbH](https://www.proact.eu)**.\n\n## Table of contents\n\n- [Requirements](#requirements)\n- [Default Variables](#default-variables)\n  - [mongodb_admin_update_password](#mongodb_admin_update_password)\n  - [mongodb_backup_addition_script](#mongodb_backup_addition_script)\n  - [mongodb_backup_cron](#mongodb_backup_cron)\n  - [mongodb_backup_enabled](#mongodb_backup_enabled)\n  - [mongodb_backup_formatting](#mongodb_backup_formatting)\n  - [mongodb_backup_ignore](#mongodb_backup_ignore)\n  - [mongodb_backup_path](#mongodb_backup_path)\n  - [mongodb_backup_retention](#mongodb_backup_retention)\n  - [mongodb_cloud_monitoring_free_state](#mongodb_cloud_monitoring_free_state)\n  - [mongodb_exporter_arch](#mongodb_exporter_arch)\n  - [mongodb_exporter_args](#mongodb_exporter_args)\n  - [mongodb_exporter_collect_collection](#mongodb_exporter_collect_collection)\n  - [mongodb_exporter_collect_database](#mongodb_exporter_collect_database)\n  - [mongodb_exporter_collect_indexusage](#mongodb_exporter_collect_indexusage)\n  - [mongodb_exporter_collect_replicaset](#mongodb_exporter_collect_replicaset)\n  - [mongodb_exporter_collect_topmetrics](#mongodb_exporter_collect_topmetrics)\n  - [mongodb_exporter_connection](#mongodb_exporter_connection)\n  - [mongodb_exporter_download](#mongodb_exporter_download)\n  - [mongodb_exporter_enabled](#mongodb_exporter_enabled)\n  - [mongodb_exporter_password](#mongodb_exporter_password)\n  - [mongodb_exporter_username](#mongodb_exporter_username)\n  - [mongodb_exporter_version](#mongodb_exporter_version)\n  - [mongodb_extra_users](#mongodb_extra_users)\n  - [mongodb_general_users](#mongodb_general_users)\n  - [mongodb_group](#mongodb_group)\n  - [mongodb_keyfile_content](#mongodb_keyfile_content)\n  - [mongodb_keyfile_path](#mongodb_keyfile_path)\n  - [mongodb_keyring](#mongodb_keyring)\n  - [mongodb_limit_files](#mongodb_limit_files)\n  - [mongodb_limit_procs](#mongodb_limit_procs)\n  - [mongodb_logrotate_retention](#mongodb_logrotate_retention)\n  - [mongodb_master_node](#mongodb_master_node)\n  - [mongodb_metrics_password](#mongodb_metrics_password)\n  - [mongodb_metrics_update_password](#mongodb_metrics_update_password)\n  - [mongodb_metrics_username](#mongodb_metrics_username)\n  - [mongodb_net_bindip](#mongodb_net_bindip)\n  - [mongodb_net_http_enabled](#mongodb_net_http_enabled)\n  - [mongodb_net_ipv6](#mongodb_net_ipv6)\n  - [mongodb_net_maxconns](#mongodb_net_maxconns)\n  - [mongodb_net_port](#mongodb_net_port)\n  - [mongodb_numa_enabled](#mongodb_numa_enabled)\n  - [mongodb_operation_profiling_mode](#mongodb_operation_profiling_mode)\n  - [mongodb_operation_profiling_slow_op_threshold_ms](#mongodb_operation_profiling_slow_op_threshold_ms)\n  - [mongodb_oplog_users](#mongodb_oplog_users)\n  - [mongodb_packages](#mongodb_packages)\n  - [mongodb_pidfile_path](#mongodb_pidfile_path)\n  - [mongodb_pymongo_version](#mongodb_pymongo_version)\n  - [mongodb_recursive_enforce_owner](#mongodb_recursive_enforce_owner)\n  - [mongodb_replication_enable_majority_read_concern](#mongodb_replication_enable_majority_read_concern)\n  - [mongodb_replication_oplogsize](#mongodb_replication_oplogsize)\n  - [mongodb_replication_params](#mongodb_replication_params)\n  - [mongodb_replication_replindexprefetch](#mongodb_replication_replindexprefetch)\n  - [mongodb_replication_replset](#mongodb_replication_replset)\n  - [mongodb_root_admin_password](#mongodb_root_admin_password)\n  - [mongodb_root_admin_username](#mongodb_root_admin_username)\n  - [mongodb_root_update_password](#mongodb_root_update_password)\n  - [mongodb_security_authorization](#mongodb_security_authorization)\n  - [mongodb_security_javascript_enabled](#mongodb_security_javascript_enabled)\n  - [mongodb_server_version](#mongodb_server_version)\n  - [mongodb_set_parameters](#mongodb_set_parameters)\n  - [mongodb_storage_dirperdb](#mongodb_storage_dirperdb)\n  - [mongodb_storage_engine](#mongodb_storage_engine)\n  - [mongodb_storage_journal_enabled](#mongodb_storage_journal_enabled)\n  - [mongodb_storage_path](#mongodb_storage_path)\n  - [mongodb_storage_quota_enforced](#mongodb_storage_quota_enforced)\n  - [mongodb_storage_quota_maxfiles](#mongodb_storage_quota_maxfiles)\n  - [mongodb_storage_smallfiles](#mongodb_storage_smallfiles)\n  - [mongodb_systemlog_logappend](#mongodb_systemlog_logappend)\n  - [mongodb_systemlog_logrotate](#mongodb_systemlog_logrotate)\n  - [mongodb_systemlog_path](#mongodb_systemlog_path)\n  - [mongodb_user](#mongodb_user)\n  - [mongodb_user_admin_password](#mongodb_user_admin_password)\n  - [mongodb_user_admin_username](#mongodb_user_admin_username)\n  - [mongodb_user_update_password](#mongodb_user_update_password)\n  - [mongodb_volumes](#mongodb_volumes)\n  - [mongodb_wirdtiger_config_string](#mongodb_wirdtiger_config_string)\n  - [mongodb_wiredtiger_cache_size](#mongodb_wiredtiger_cache_size)\n  - [mongodb_wiredtiger_config_string](#mongodb_wiredtiger_config_string)\n  - [mongodb_wiredtiger_directory_for_indexes](#mongodb_wiredtiger_directory_for_indexes)\n- [Discovered Tags](#discovered-tags)\n- [Dependencies](#dependencies)\n- [License](#license)\n- [Author](#author)\n\n---\n\n## Requirements\n\n- Minimum Ansible version: `2.10`\n\n## Default Variables\n\n### mongodb_admin_update_password\n\nDefine when root admin password should be changed\n\n#### Default value\n\n```YAML\nmongodb_admin_update_password: always\n```\n\n### mongodb_backup_addition_script\n\nAdditional commands at the end of the script\n\n#### Default value\n\n```YAML\nmongodb_backup_addition_script:\n```\n\n### mongodb_backup_cron\n\nA simple cron timing definition like hourly, daily or weekly\n\n#### Default value\n\n```YAML\nmongodb_backup_cron: daily\n```\n\n### mongodb_backup_enabled\n\nEnable or disable the backup script\n\n#### Default value\n\n```YAML\nmongodb_backup_enabled: false\n```\n\n### mongodb_backup_formatting\n\nDate format for the backup folder name\n\n#### Default value\n\n```YAML\nmongodb_backup_formatting: '%F'\n```\n\n### mongodb_backup_ignore\n\nIgnoring this filter via grep on database selection\n\n#### Default value\n\n```YAML\nmongodb_backup_ignore: (admin|local)\n```\n\n### mongodb_backup_path\n\nPath to store the backups\n\n#### Default value\n\n```YAML\nmongodb_backup_path: '{{ mongodb_storage_path }}/_backup'\n```\n\n### mongodb_backup_retention\n\nRetention period to keep backups\n\n#### Default value\n\n```YAML\nmongodb_backup_retention: 7\n```\n\n### mongodb_cloud_monitoring_free_state\n\nDefine parameters for mongod config\n\n#### Default value\n\n```YAML\nmongodb_cloud_monitoring_free_state: off\n```\n\n### mongodb_exporter_arch\n\nTarget system architecture of the binary\n\n#### Default value\n\n```YAML\nmongodb_exporter_arch: \"{{ 'arm64' if ansible_architecture == 'aarch64' or ansible_architecture\n  == 'arm64' else 'amd64' }}\"\n```\n\n### mongodb_exporter_args\n\nList of arguments joined for the executable\n\n#### Default value\n\n```YAML\nmongodb_exporter_args: []\n```\n\n### mongodb_exporter_collect_collection\n\nEnable collector for collections\n\n#### Default value\n\n```YAML\nmongodb_exporter_collect_collection: false\n```\n\n### mongodb_exporter_collect_database\n\nEnable collector for databases\n\n#### Default value\n\n```YAML\nmongodb_exporter_collect_database: true\n```\n\n### mongodb_exporter_collect_indexusage\n\nEnable collector for index usage\n\n#### Default value\n\n```YAML\nmongodb_exporter_collect_indexusage: false\n```\n\n### mongodb_exporter_collect_replicaset\n\n#### Default value\n\n```YAML\nmongodb_exporter_collect_replicaset: true\n```\n\n### mongodb_exporter_collect_topmetrics\n\nEnable collector for top metrics\n\n#### Default value\n\n```YAML\nmongodb_exporter_collect_topmetrics: true\n```\n\n### mongodb_exporter_connection\n\nConnection URI to access the MongoDB\n\n#### Default value\n\n```YAML\nmongodb_exporter_connection: mongodb://{% if mongodb_security_authorization == \n  'enabled' %}{{ mongodb_metrics_username }}:{{ mongodb_metrics_password }}@{% \n  endif %}localhost:27017\n```\n\n#### Example usage\n\n```YAML\nmongodb_exporter_connection: mongodb://localhost:27017\n```\n\n### mongodb_exporter_download\n\nURL to the archive of the release to install\n\n#### Default value\n\n```YAML\nmongodb_exporter_download: \n  https://github.com/percona/mongodb_exporter/releases/download/v{{ \n  mongodb_exporter_version }}/mongodb_exporter-{{ mongodb_exporter_version \n  }}.linux-{{ mongodb_exporter_arch }}.tar.gz\n```\n\n### mongodb_exporter_enabled\n\nEnable the mongodb exporter\n\n#### Default value\n\n```YAML\nmongodb_exporter_enabled: true\n```\n\n### mongodb_exporter_password\n\n#### Default value\n\n```YAML\nmongodb_exporter_password:\n```\n\n### mongodb_exporter_username\n\nPassword to secure the metrics endpoint\n\n#### Default value\n\n```YAML\nmongodb_exporter_username:\n```\n\n### mongodb_exporter_version\n\nVersion of the release to install\n\n#### Default value\n\n```YAML\nmongodb_exporter_version: 0.47.2\n```\n\n### mongodb_extra_users\n\nList of extra users to create\n\n#### Default value\n\n```YAML\nmongodb_extra_users: []\n```\n\n#### Example usage\n\n```YAML\nmongodb_extra_users:\n  - username: username1\n    password: p455w0rd\n    roles: userAdminAnyDatabase\n  - username: username2\n    password: p455w0rd\n    roles:\n      - db: cool-app\n        role: read\n    update_password: on_create\n```\n\n### mongodb_general_users\n\nList of general users to create\n\n#### Default value\n\n```YAML\nmongodb_general_users: []\n```\n\n#### Example usage\n\n```YAML\nmongodb_general_users:\n  - username: username1\n    password: p455w0rd\n    roles: userAdminAnyDatabase\n  - username: username2\n    password: p455w0rd\n    roles:\n      - db: cool-app\n        role: read\n    update_password: on_create\n```\n\n### mongodb_group\n\nName of the group owning MongoDB\n\n#### Default value\n\n```YAML\nmongodb_group: mongodb\n```\n\n### mongodb_keyfile_content\n\nKey for inter-process auth, generate it with \"openssl rand -base64 741\"\n\n#### Default value\n\n```YAML\nmongodb_keyfile_content: |\n  dtHmRo7L02cY5WnMl/mrn6mjLkXpepzV39VQzulNJyglcYu9XW+tph8uI/dku082\n  IPf0tGttUb9KiogspyOyzVk+T1r3apLIGktu6YycdyHMqAzVrsS08cb7VecbcUKW\n  aODcxfRUYUGWCYjjVl8jm2x25hR4otakdHhxYi/B3eFEu2zWxvX3zgq78U0djQbl\n  qp9I7uyCsireT5SNj/A0H5QoCN6zMb7stNveas8W0N6+HfFVBD5brvVXGf5Td9Bz\n  EZ6e/69c7OtaNvbxEZP2SpkyZb7m0Q5vWs+YZyFWw7u9SBGXkUwTPVmVl0JLgHxA\n  ADOS2lYUdQCWTS1WT3D4nqfFn6xGikC6HK9SYVp5RG0EkRGRDJ9YiFa7lYRQmzJC\n  D+y2QECYXGT3pjl0u8B4AW8YgBkzcPCdD86PaZFxbycg6bvgSiwTJ/VfROnQ8crA\n  tBuYdy0r5fqshT7VOPw7dezhYjFiUYv2IspVGTB87ZkQxJ4GhKQIZB/31Rz216X7\n  944M6o7priJwWy9rJGk9YwSA18RoTlYNTXCdXQiUNmQl6Qd/zIVNDJ+cu1c7CwgF\n  zv//L5yDdTeP5YYEPf0DHW7gX2OGfdLjgkvXibpPPll3D6p5kwvRIcyOvVaCapSH\n  XJwrLJOidIjGC3UDS3+e17lNHHrw+/0ppYqh/0kfAMyZ2Si77T4jL5U3vSl3xAou\n  FFCMWXCyNE5/sngFIn5PDWZssQbel7mI5x9i4EZxreaSry0BUJK2ZUbPLGdW6F+I\n  tZiel1zZrVHPce+BAJCsjOIxB8jlnEd3FTjhgm8fDIrWCuRCdQ6hBL7KluqZBU/g\n  6tp4/YjUC98GNQK4w52+8BzU07b/OM54JB6Q+fPhQc1VK9S4sUnG5YoB+NN426ji\n  Hj5YyWm1PLtbeXqSATUEuUR47KGnJxt5YZn0wnOPhEvTWZw+X0EfDahOj5HllSli\n  Y9dhyzeXLgAay/bKLUNaudEMNQYh\n```\n\n### mongodb_keyfile_path\n\nPath to store the keyfile content\n\n#### Default value\n\n```YAML\nmongodb_keyfile_path: /etc/mongod.key\n```\n\n### mongodb_keyring\n\nPath for the repository keyring\n\n#### Default value\n\n```YAML\nmongodb_keyring: /usr/share/keyrings/mongodb-{{ mongodb_server_version \n  }}-archive-keyring.gpg\n```\n\n### mongodb_limit_files\n\nLimit for open files for the mongod service\n\n#### Default value\n\n```YAML\nmongodb_limit_files: 1048576\n```\n\n### mongodb_limit_procs\n\nLimit for processes for the mongod service\n\n#### Default value\n\n```YAML\nmongodb_limit_procs: 524288\n```\n\n### mongodb_logrotate_retention\n\nRetention for log rotation\n\n#### Default value\n\n```YAML\nmongodb_logrotate_retention: 14\n```\n\n### mongodb_master_node\n\nDefine the inventory name of the master node, used for users and replset init\n\n#### Default value\n\n```YAML\nmongodb_master_node:\n```\n\n### mongodb_metrics_password\n\nPassword used for metrics exports\n\n#### Default value\n\n```YAML\nmongodb_metrics_password: p455w0rd\n```\n\n### mongodb_metrics_update_password\n\nDefine when metrics user password should be changed\n\n#### Default value\n\n```YAML\nmongodb_metrics_update_password: always\n```\n\n### mongodb_metrics_username\n\nUsername used for metrics exports\n\n#### Default value\n\n```YAML\nmongodb_metrics_username: metrics\n```\n\n### mongodb_net_bindip\n\n#### Default value\n\n```YAML\nmongodb_net_bindip: 127.0.0.1\n```\n\n### mongodb_net_http_enabled\n\nEnable HTTP interface\n\n#### Default value\n\n```YAML\nmongodb_net_http_enabled: false\n```\n\n### mongodb_net_ipv6\n\nEnable IPv6 support\n\n#### Default value\n\n```YAML\nmongodb_net_ipv6: false\n```\n\n### mongodb_net_maxconns\n\nMax number of simultaneous connections\n\n#### Default value\n\n```YAML\nmongodb_net_maxconns: 51200\n```\n\n### mongodb_net_port\n\n#### Default value\n\n```YAML\nmongodb_net_port: 27017\n```\n\n### mongodb_numa_enabled\n\nEnable if the system supports NUMA policies\n\n#### Default value\n\n```YAML\nmongodb_numa_enabled: true\n```\n\n### mongodb_operation_profiling_mode\n\nMode for operation profiling\n\n#### Default value\n\n```YAML\nmongodb_operation_profiling_mode: off\n```\n\n### mongodb_operation_profiling_slow_op_threshold_ms\n\nProfiling slow operations threshold in ms\n\n#### Default value\n\n```YAML\nmongodb_operation_profiling_slow_op_threshold_ms: 100\n```\n\n### mongodb_oplog_users\n\nList of oplog users to create\n\n#### Default value\n\n```YAML\nmongodb_oplog_users: []\n```\n\n#### Example usage\n\n```YAML\nmongodb_oplog_users:\n  - username: oplog1\n    password: p455w0rd\n  - username: oplog2\n    password: p455w0rd\n    update_password: on_create\n```\n\n### mongodb_packages\n\nList of packages to install for mongodb\n\n#### Default value\n\n```YAML\nmongodb_packages:\n  - mongodb-org\n  - numactl\n  - python3-pip\n  - python3-pymongo\n```\n\n### mongodb_pidfile_path\n\nPath to the pid file\n\n#### Default value\n\n```YAML\nmongodb_pidfile_path: /run/mongodb/mongod.pid\n```\n\n### mongodb_pymongo_version\n\n#### Default value\n\n```YAML\nmongodb_pymongo_version:\n```\n\n### mongodb_recursive_enforce_owner\n\nEnforce recursively data ownership\n\n#### Default value\n\n```YAML\nmongodb_recursive_enforce_owner: false\n```\n\n### mongodb_replication_enable_majority_read_concern\n\nEnable or disable majority read concern, should be false for PSA\n\n#### Default value\n\n```YAML\nmongodb_replication_enable_majority_read_concern: true\n```\n\n### mongodb_replication_oplogsize\n\nSpecifies a maximum size in megabytes for the replication operation log\n\n#### Default value\n\n```YAML\nmongodb_replication_oplogsize: 1024\n```\n\n### mongodb_replication_params\n\nReplication host configuration or parameters\n\n#### Default value\n\n```YAML\nmongodb_replication_params:\n```\n\n#### Example usage\n\n```YAML\nmongodb_replication_params:\n  - host_name: mongo-01,\n    host_port: \"{{ mongodb_net_port }}\"\n    host_type: replica\n  - host_name: mongo-02\n    host_port: \"{{ mongodb_net_port }}\"\n    host_type: replica\n  - host_name: mongo-03\n    host_port: \"{{ mongodb_net_port }}\"\n    host_type: replica\n```\n\n### mongodb_replication_replindexprefetch\n\nSpecify index prefetching behavior if secondary like none, _id_only, all\n\n#### Default value\n\n```YAML\nmongodb_replication_replindexprefetch: all\n```\n\n### mongodb_replication_replset\n\nEnable replication in the form of \u003csetname\u003e[/\u003coptionalseedhostlist\u003e]\n\n#### Default value\n\n```YAML\nmongodb_replication_replset:\n```\n\n### mongodb_root_admin_password\n\n#### Default value\n\n```YAML\nmongodb_root_admin_password: p455w0rd\n```\n\n### mongodb_root_admin_username\n\n#### Default value\n\n```YAML\nmongodb_root_admin_username: root\n```\n\n### mongodb_root_update_password\n\nDefine when root admin password should be changed\n\n#### Default value\n\n```YAML\nmongodb_root_update_password: always\n```\n\n### mongodb_security_authorization\n\nDisable or enable security\n\n#### Default value\n\n```YAML\nmongodb_security_authorization: disabled\n```\n\n### mongodb_security_javascript_enabled\n\nEnable javascript integration\n\n#### Default value\n\n```YAML\nmongodb_security_javascript_enabled: false\n```\n\n### mongodb_server_version\n\nSpecify the port number to listen to\n\n#### Default value\n\n```YAML\nmongodb_server_version: '8.0'\n```\n\n### mongodb_set_parameters\n\n#### Default value\n\n```YAML\nmongodb_set_parameters: {}\n```\n\n#### Example usage\n\n```YAML\nmongodb_set_parameters:\n  enableLocalhostAuthBypass: \"true\"\n  authenticationMechanisms: SCRAM-SHA-1,MONGODB-CR\n```\n\n### mongodb_storage_dirperdb\n\nUse one directory per database\n\n#### Default value\n\n```YAML\nmongodb_storage_dirperdb: false\n```\n\n### mongodb_storage_engine\n\n#### Default value\n\n```YAML\nmongodb_storage_engine: wiredTiger\n```\n\n### mongodb_storage_journal_enabled\n\nEnable journaling\n\n#### Default value\n\n```YAML\nmongodb_storage_journal_enabled: true\n```\n\n### mongodb_storage_path\n\n#### Default value\n\n```YAML\nmongodb_storage_path: /var/lib/mongodb\n```\n\n### mongodb_storage_quota_enforced\n\nLimit each database to a certain number of files\n\n#### Default value\n\n```YAML\nmongodb_storage_quota_enforced: false\n```\n\n### mongodb_storage_quota_maxfiles\n\nNumber of quota files per database\n\n#### Default value\n\n```YAML\nmongodb_storage_quota_maxfiles: 8\n```\n\n### mongodb_storage_smallfiles\n\nVery useful for non-data nodes\n\n#### Default value\n\n```YAML\nmongodb_storage_smallfiles: false\n```\n\n### mongodb_systemlog_logappend\n\nAppend to the logging file\n\n#### Default value\n\n```YAML\nmongodb_systemlog_logappend: true\n```\n\n### mongodb_systemlog_logrotate\n\nDefine the used storage engine\n\n#### Default value\n\n```YAML\nmongodb_systemlog_logrotate: reopen\n```\n\n### mongodb_systemlog_path\n\nPath to the logging file\n\n#### Default value\n\n```YAML\nmongodb_systemlog_path: /var/log/mongodb/mongod.log\n```\n\n### mongodb_user\n\nName of the user owning MongoDB\n\n#### Default value\n\n```YAML\nmongodb_user: mongodb\n```\n\n### mongodb_user_admin_password\n\n#### Default value\n\n```YAML\nmongodb_user_admin_password: p455w0rd\n```\n\n### mongodb_user_admin_username\n\n#### Default value\n\n```YAML\nmongodb_user_admin_username: siteUserAdmin\n```\n\n### mongodb_user_update_password\n\nDefine when user admin password should be changed\n\n#### Default value\n\n```YAML\nmongodb_user_update_password: on_create\n```\n\n### mongodb_volumes\n\nList of volumes/disks used to store the data tweaked by blockdev\n\n#### Default value\n\n```YAML\nmongodb_volumes: []\n```\n\n### mongodb_wirdtiger_config_string\n\nConfig String for the wiredtiger engine\n\n### mongodb_wiredtiger_cache_size\n\nCache size for wiredtiger cache size\n\n#### Default value\n\n```YAML\nmongodb_wiredtiger_cache_size:\n```\n\n### mongodb_wiredtiger_config_string\n\n#### Default value\n\n```YAML\nmongodb_wiredtiger_config_string:\n```\n\n### mongodb_wiredtiger_directory_for_indexes\n\nDirectory per index for wiredtiger engine\n\n#### Default value\n\n```YAML\nmongodb_wiredtiger_directory_for_indexes: true\n```\n\n## Discovered Tags\n\n**_mongodb_**\n\n**_mongodb-exporter_**\n\n## Dependencies\n\n- [community.mongodb](https://github.com/ansible-collections/community.mongodb)\n\n## License\n\nApache-2.0\n\n## Author\n\n[Thomas Boerger](https://github.com/tboerger)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolehippie%2Fmongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frolehippie%2Fmongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolehippie%2Fmongodb/lists"}