File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -115,13 +115,21 @@ mongodb_root_admin_password
115
115
` ` `
116
116
Example vars for replication :
117
117
` ` ` yaml
118
- mongodb_login_host: 192.168.56.2 # Mongodb master host
119
-
120
118
# mongodb_replication_params should be configured on each replica set node
121
119
mongodb_replication_params:
122
120
- { host_name: 192.168.56.2, host_port: "{{ mongodb_conf_port }}", host_type: replica }
123
121
# host_type can be replica(default) and arbiter
124
122
` ` `
123
+ And inventory file for replica set :
124
+ ` ` ` ini
125
+ [mongo_master]
126
+ 192.158.56.2 mongodb_master=True # it'n not a really master of MongoDB replica set,
127
+ # use this variable for replica set init only
128
+
129
+ [mongo_replicas]
130
+ 192.168.56.3
131
+ 192.168.56.4
132
+ ` ` `
125
133
126
134
Licensed under the GPLv2 License. See the [LICENSE.md](LICENSE.md) file for details.
127
135
You can’t perform that action at this time.
0 commit comments