Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rudolfolah/ansible-role-mongodb
MongoDB role for Ansible, for a specific version installed from .tar.gz
https://github.com/rudolfolah/ansible-role-mongodb
ansible-role ansible-role-mongodb ansible-role-template ansible-roles mongo mongodb mongodb-database
Last synced: about 2 months ago
JSON representation
MongoDB role for Ansible, for a specific version installed from .tar.gz
- Host: GitHub
- URL: https://github.com/rudolfolah/ansible-role-mongodb
- Owner: rudolfolah
- License: mit
- Created: 2023-04-12T04:13:54.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-16T01:42:13.000Z (over 1 year ago)
- Last Synced: 2024-10-14T07:23:04.086Z (3 months ago)
- Topics: ansible-role, ansible-role-mongodb, ansible-role-template, ansible-roles, mongo, mongodb, mongodb-database
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: MongoDB
An Ansible role for installing and configuring MongoDB.
## Requirements
This role requires Ansible 2.10 or later.
## Role Variables
The role uses the following variables, which can be customized in `vars/main.yml` or overridden during playbook execution:
- `mongodb_version`: The version of MongoDB to install (default: `6.0.5`).
- `mongodb_os`: The target operating system for MongoDB (default: `ubuntu1804`).
- `mongodb_os_version`: The specific version of the target operating system (default: `6.0.5`).## Dependencies
This role has no external dependencies.
## Example Playbook
To use this role, create a playbook as shown below:
```yaml
- name: Install and configure MongoDB
hosts: servers
become: trueroles:
- role: mongodb
```You can also override the default variables in the playbook:
```yaml
- name: Install and configure MongoDB
hosts: servers
become: trueroles:
- role: mongodb
vars:
mongodb_version: 4.4.5
mongodb_os: debian10
mongodb_os_version: 4.4.5
```## License
This project is licensed under the [MIT License](LICENSE).
## Author Information
This role was created by Rudolf Olah