girder.mongodb
girder.mongodb
This is an Ansible role for installing the MongoDB server.
Requirements
You need Ubuntu version 18.04 or higher.
Role Variables
Parameter | Required | Default | Comments |
---|---|---|---|
mongodb_version |
No | 4.4 |
The version of MongoDB to install (major.minor). |
mongodb_data_path |
No | /var/lib/mongodb |
The path where MongoDB will save its data files. |
mongodb_bind_public |
No | false |
If true, MongoDB will be accessible from all network interfaces. This may be a security risk. |
mongodb_authorization |
No | false |
If true, enables access control. You’ll need to create users separately. |
Example Playbook
Here’s what a basic playbook using this role might look like:
- name: Deploy MongoDB
hosts: all
vars:
ansible_python_interpreter: auto
roles:
- role: girder.mongodb
vars:
# Lock version to avoid automatic upgrades
mongodb_version: "4.4"
A typical
Ansible Galaxy requirements.yml
file
would look like this:
- src: girder.mongodb
version: master
License
Installa
ansible-galaxy install girder.mongodb
Licenza
apache-2.0
Download
7.7k
Proprietario
This organization contains repositories related to the Girder project, a data management toolkit developed and maintained by Kitware.