forked from Elvinius/ica0002
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinfra.yaml
85 lines (76 loc) · 1.19 KB
/
infra.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
74
75
76
77
78
79
80
81
82
83
84
85
---
- name: Collect information about all VMs
hosts: all
tasks:
- setup:
- name: Ansible connection test
hosts: all
roles:
- test_connection
- name: Setup
hosts: all
become: yes
roles:
- init
- name: DNS
hosts: dns_servers
become: yes
roles:
- bind
tags: bind
- name: DNS Resolved
hosts: all
become: yes
roles:
- dns_resolve
tags: dns_resolve
- name: Configure Nginx
hosts: all
become: yes
roles:
- nginx
tags: nginx
- name: Configure Prometheus
hosts: prometheus
become: yes
roles:
- prometheus
tags: prometheus
- name: db servers
hosts: db_servers
become: yes
gather_facts: no
roles:
- mysql
tags: mysql
- name: Internal Machine Play
hosts: internal_vm
become: yes
roles:
- users
#- grafana
- docker
- grafana_docker
- nginx_exporter
- influxdb
- rsyslog
- pinger
- backup
tags:
- internal
- name: Application Machine Play
hosts: application_vms
become: yes
roles:
- docker
- agama_docker
- haproxy
- keepalived
- backup
- mysql_exporter
- nginx_exporter
- bind_exporter
- node_exporter
- rsyslog
tags:
- application