-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsite.yml
53 lines (46 loc) · 977 Bytes
/
site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
- name: Install MongoDB
hosts:
- mongo_servers
remote_user: "{{ os_user }}"
become: yes
become_method: sudo
gather_facts: no
roles:
- mongo_install
- name: Create Config of Instances in MongoDB
hosts:
- mongo_servers
remote_user: "{{ os_user }}"
become: yes
become_method: sudo
gather_facts: no
roles:
- prepare_config_instances
- name: Start Replicaset
hosts:
- mongo_main_server
remote_user: "{{ os_user }}"
become: yes
become_method: sudo
gather_facts: no
roles:
- replicaset
# - name: Prepare Paths Instances in MongoDB
# hosts:
# - mongo_servers
# remote_user: "{{ os_user }}"
# become: yes
# become_method: sudo
# gather_facts: no
# roles:
# - prepare_paths_instances
# - name: Start Instances in MongoDB
# hosts:
# - mongo_servers
# remote_user: "{{ os_user }}"
# become: yes
# become_method: sudo
# gather_facts: no
# roles:
# - prepare_paths_instances