forked from Elvinius/ica0002
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlab11_mysql_ha.yaml
73 lines (63 loc) · 1.16 KB
/
lab11_mysql_ha.yaml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Commented out since Lab 12 - Docker
- name: Setup Nginx, Agama, uWSGI and MySQL setup role
hosts: app_servers
gather_facts: false
become: yes
roles:
# - agama
# - uwsgi
- nginx
- name: Setup MySQL
hosts: db_servers
gather_facts: false
become: yes
roles:
- mysql
- name: Setup DNS server
hosts: dns_servers
gather_facts: true
become: yes
roles:
- bind
- name: Setup Prometheus
hosts: prometheus
gather_facts: false
become: yes
roles:
- prometheus
- name: Setup Node exporters
hosts: node_exporters
gather_facts: false
become: yes
roles:
- node_exporter
- name: Setup Nginx exporter
hosts: all
become: yes
roles:
- nginx_exporter
- name: Setup exporter
hosts: dns_servers
gather_facts: false
become: yes
roles:
- bind_exporter
- name: Setup MySQL exporter
hosts: db_servers
gather_facts: false
become: yes
roles:
- mysql_exporter
# Commented out since Lab 12 - Docker
#- name: Setup Grafana
# hosts: grafana
# gather_facts: false
# become: yes
# roles:
# - grafana
- name: Setup backup facility
hosts: all
gather_facts: false
become: yes
roles:
- backup