You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
360 B
22 lines
360 B
---
|
|
# This Playbook would deploy the whole mongodb cluster with replication and sharding.
|
|
|
|
- hosts: all
|
|
roles:
|
|
- role: common
|
|
|
|
- hosts: mongo_servers
|
|
roles:
|
|
- role: mongod
|
|
|
|
- hosts: mongoc_servers
|
|
roles:
|
|
- role: mongoc
|
|
|
|
- hosts: mongos_servers
|
|
roles:
|
|
- role: mongos
|
|
|
|
- hosts: mongo_servers
|
|
tasks:
|
|
- include: roles/mongod/tasks/shards.yml
|
|
|