-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdeploy-grafana.yml
More file actions
40 lines (37 loc) · 962 Bytes
/
deploy-grafana.yml
File metadata and controls
40 lines (37 loc) · 962 Bytes
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
---
- hosts: grafana-app-servers, grafana-graphite-api-servers, grafana-postgresql-servers
gather_facts: false
pre_tasks:
- include_tasks: tasks/python3-ubuntu.yml
- name: Setup Ansible
setup:
roles:
- common
- hosts: grafana-graphite-api-servers
become: true
roles:
- onaio.graphite-api
- hosts: grafana-postgresql-servers
become: true
roles:
- postgresql
- hosts: grafana-app-servers
any_errors_fatal: true
become: true
roles:
- role: cloudalchemy.grafana
tags:
- grafana
- role: certbot
tags:
- certbot
when: grafana_use_certbot is not defined or grafana_use_certbot
- role: nginx
tags:
- nginx
when: grafana_use_nginx is not defined or grafana_use_nginx
post_tasks:
- import_tasks: tasks/install-grafana-dashboard.yml
tags:
- grafana-dashboard
when: grafana_dashboard_install is defined and grafana_dashboard_install