-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdeploy-opensrp.yml
More file actions
55 lines (49 loc) · 1.14 KB
/
deploy-opensrp.yml
File metadata and controls
55 lines (49 loc) · 1.14 KB
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
52
53
54
55
- hosts: opensrp-app-servers, opensrp-couchdb-servers, opensrp-mysql-servers, opensrp-redis-servers, opensrp-postgresql-servers, opensrp-rabbitmq-servers
gather_facts: False
pre_tasks:
- include_tasks: tasks/python3-ubuntu.yml
- name: Setup Ansible
setup:
roles:
- common
- hosts: opensrp-couchdb-servers
serial: 1 # Runs playbook one server at at time (to achieve a rolling update)
max_fail_percentage: 0
roles:
- couchdb
tags:
- opensrp-couchdb
- hosts: opensrp-mysql-servers
roles:
- mysql-5.7
tags:
- opensrp-mysql
- hosts: opensrp-redis-servers
become: true
become_user: "root"
roles:
- onaio.redis
tags:
- opensrp-redis
- hosts: opensrp-postgresql-servers
become: true
become_user: "root"
roles:
- postgresql
tags:
- opensrp-postgresql
- opensrp-postgres
- hosts: opensrp-rabbitmq-servers
become: true
become_user: "root"
roles:
- rabbitmq
tags:
- opensrp-rabbitmq
- hosts: opensrp-app-servers
serial: 1 # Runs playbook one server at at time (to achieve a rolling update)
max_fail_percentage: 0
roles:
- opensrp
tags:
- opensrp-app