-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackoffice.yaml
55 lines (49 loc) · 1.37 KB
/
backoffice.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
---
- name: backoffice
hosts: backoffice
remote_user: ubuntu
become: true
vars:
app_user: ubuntu
uwsgi_apps:
- api-production
- api-testing
- husky-musher
tasks:
- import_tasks: tasks/apt-update.yaml
- import_tasks: tasks/ssh-keys.yaml
- import_tasks: tasks/systemd.yaml
- import_tasks: tasks/prometheus.yaml
- import_tasks: tasks/promtail.yaml
- import_tasks: tasks/postgres.yaml
- import_tasks: tasks/python.yaml
- import_tasks: tasks/uwsgi.yaml
- import_tasks: tasks/backoffice-repos.yaml
- import_tasks: tasks/apache2.yaml
- import_tasks: tasks/certbot.yaml
- import_tasks: tasks/dev-ssl-cert.yaml
when: development
- import_tasks: tasks/prod-ssl-cert.yaml
when: production
- import_tasks: tasks/backoffice-pipenv.yaml
- import_tasks: tasks/switchboard.yaml
handlers:
- name: systemd units are re-read from disk
systemd:
daemon_reload: yes
- name: prometheus is restarted
service:
name: prometheus
state: restarted
- name: prometheus is reloaded
service:
name: prometheus
state: reloaded
- name: prometheus-node-exporter is restarted
service:
name: prometheus-node-exporter
state: restarted
- name: promtail is restarted
service:
name: promtail
state: restarted