ansible-role-grafana/tasks/configuration.yml

33 lines
971 B
YAML
Raw Normal View History

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"
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