Skip to content

Ansible playbook to install and configure MongoDB ReplicaSet on Ubuntu 18.04

License

Notifications You must be signed in to change notification settings

ricaragao/ansible-mongodb-replicaset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a Ansible playbook for create a Mongodb replicaset on Ubuntu 18.

Configuration

hosts:

[mongo_servers]
ubuntu-node-01
ubuntu-node-02

[mongo_main_server]
ubuntu-node-01

[mongo_secondaries_servers]
ubuntu-node-02

Execute

Inside of playbook path, execute:

# ansible-playbook -i hosts site.yml --ask-become-pass -k

This above command ask for password. If you don't need password, remove -k parameter.

About

Ansible playbook to install and configure MongoDB ReplicaSet on Ubuntu 18.04

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published