chauanhtuandl.mongodb
Ansible Role: MongoDB
This role installs MongoDB on RHEL, CentOS, Debian, and Ubuntu systems.
Requirements
You need the pymongo library for this role.
Role Variables
Here are the variables you can use, along with their default values (see defaults/main.yml
):
packages_name
: The name of the MongoDB package.service_name
: The name of the MongoDB service on your operating system.service_service_state
: This variable controls whether to start, stop, restart, or reload the service. For more details, see state. Default is: start.service_service_enabled
: Indicates if the service should start automatically on boot.mongo_access_control_enabled
: This controls whether authentication will be created for MongoDB.mongodb_user_ac
: The username that will be created ifmongo_access_control_enabled
is true.mongodb_user_roles
: The roles assigned to the user whenmongo_access_control_enabled
is true.
Dependencies
This role requires another role, chauanhtuan.pip, to install the pymongo library.
Example Playbook
Here's how you can use this role in a playbook:
- hosts: servers
roles:
- chauanhtuandl.pip
- chauanhtuandl.mongodb
License
MIT / BSD
Author Information
This role was created and edited by Chau Anh Tuan in 2020.
Installa
ansible-galaxy install chauanhtuandl.mongodb
Licenza
mit
Download
226
Proprietario