Merge pull request 'Add grafana configuration and set up e-mail' (#4) from grafana-config into main

Reviewed-on: #4
This commit was merged in pull request #4.
This commit is contained in:
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 - name: Install Grafana
tags: grafana-install tags: grafana-install
ansible.builtin.package: ansible.builtin.package:
name: 'grafana' name: 'grafana'
state: latest state: latest
- name: Enable Grafana service - name: Add grafana configuration
tags: grafana-enable tags: grafana-configure
ansible.builtin.service: ansible.builtin.template:
name: 'grafana-server' src: grafana.ini.j2
state: started dest: '/etc/grafana/grafana.ini'
enabled: yes 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