2022-12-27 10:43:32 +01:00
|
|
|
---
|
2023-11-20 11:55:43 +01:00
|
|
|
- name: "Configuration | Aktivere und starte Service"
|
2022-12-28 16:39:30 +01:00
|
|
|
ansible.builtin.systemd:
|
|
|
|
name: grafana-server
|
|
|
|
enabled: true
|
|
|
|
state: started
|
|
|
|
daemon_reload: true
|
|
|
|
|
2023-11-20 11:55:43 +01:00
|
|
|
- name: "Configuration | Erzeuge Grafana-Konfiguration"
|
2022-12-27 10:43:32 +01:00
|
|
|
ansible.builtin.template:
|
|
|
|
src: grafana.ini
|
|
|
|
dest: /etc/grafana/grafana.ini
|
2023-11-20 11:47:05 +01:00
|
|
|
mode: "0640"
|
2023-11-20 11:55:43 +01:00
|
|
|
notify: Restart grafana-server
|
2022-12-27 10:43:32 +01:00
|
|
|
|
2023-11-20 11:55:43 +01:00
|
|
|
- name: "Configuration | Installiere Image Renderer Module"
|
2022-12-27 10:49:33 +01:00
|
|
|
ansible.builtin.command:
|
|
|
|
cmd: grafana-cli plugins install grafana-image-renderer
|
|
|
|
creates: /var/lib/grafana/plugins/grafana-image-renderer
|
2023-11-20 11:55:43 +01:00
|
|
|
|
|
|
|
- name: "Configuration | Create systemd override directory"
|
|
|
|
ansible.builtin.file:
|
|
|
|
path: /etc/systemd/system/grafana-server.service.d
|
|
|
|
state: directory
|
|
|
|
mode: "0755"
|
|
|
|
|
|
|
|
- name: "Configuration | Copy systemd override configuration"
|
|
|
|
ansible.builtin.copy:
|
|
|
|
src: systemd/override.conf
|
|
|
|
dest: /etc/systemd/system/grafana-server.service.d
|
|
|
|
mode: "0644
|
|
|
|
notify: Restart grafana-server
|