Last active
March 17, 2016 18:35
-
-
Save apanimesh061/89296f321ef835caf2c1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: all | |
sudo: true | |
roles: | |
- Stouts.mongodb | |
vars: | |
- mongodb_conf_replSet: rs0 | |
- mongodb_conf_bind_ip: 192.168.111.11 | |
- mongodb_shell: | |
rs.initiate() | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I use the following playbook: | |
--- | |
- hosts: all | |
sudo: true | |
vars: | |
mongodb_conf_replSet: rs0/192.168.111.11:27017 | |
mongodb_conf_bind_ip: 192.168.111.11 | |
mongodb_shell: | |
test: | |
- rs.initiate() | |
roles: | |
- Stouts.mongodb | |
After installation I checked: | |
MongoDB shell version: 3.2.1 | |
connecting to: 192.168.111.11:27017/test | |
> db.getName() | |
test | |
> show databases | |
admin (empty) | |
local 0.078GB | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment