Add grafana configuration and set up e-mail #4

Merged
vincent merged 2 commits from grafana-config into main 2026-06-13 19:15:13 +02:00
3 changed files with 1951 additions and 14 deletions
+5
View File
@@ -0,0 +1,5 @@
## Restart grafana on changes
- name: restart grafana
ansible.builtin.service:
name: 'grafana-server'
state: restarted
+21 -14
View File
@@ -1,14 +1,21 @@
---
- name: Install Grafana
tags: grafana-install
ansible.builtin.package:
name: 'grafana'
state: latest
- name: Enable Grafana service
tags: grafana-enable
ansible.builtin.service:
name: 'grafana-server'
state: started
enabled: yes
---
- name: Install Grafana
tags: grafana-install
ansible.builtin.package:
name: 'grafana'
state: latest
- name: Add grafana configuration
tags: grafana-configure
ansible.builtin.template:
src: grafana.ini.j2
dest: '/etc/grafana/grafana.ini'
notify: restart grafana
- name: Enable Grafana service
tags: grafana-enable
ansible.builtin.service:
name: 'grafana-server'
state: started
enabled: yes
File diff suppressed because it is too large Load Diff