mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-11 04:10:17 +01:00
24 lines
756 B
YAML
24 lines
756 B
YAML
|
---
|
||
|
#This Playbook configures the mongos service of mongodb
|
||
|
|
||
|
- name: Create the mongos startup file
|
||
|
template: src=mongos.j2 dest=/etc/init.d/mongos mode=0655
|
||
|
|
||
|
|
||
|
- name: Create the mongos configuration file
|
||
|
template: src=mongos.conf.j2 dest=/etc/mongos.conf
|
||
|
|
||
|
- name: Copy the keyfile for authentication
|
||
|
copy: src=roles/mongod/files/secret dest={{ mongodb_datadir_prefix }}/secret owner=mongod group=mongod mode=0400
|
||
|
|
||
|
- name: Start the mongos service
|
||
|
command: creates=/var/lock/subsys/mongos /etc/init.d/mongos start
|
||
|
- name: pause
|
||
|
pause: seconds=20
|
||
|
|
||
|
- name: copy the file for shard test
|
||
|
template: src=testsharding.j2 dest=/tmp/testsharding.js
|
||
|
|
||
|
- name: copy the file enable sharding
|
||
|
template: src=enablesharding.j2 dest=/tmp/enablesharding.js
|