32 lines
972 B
YAML
32 lines
972 B
YAML
---
|
|
- name: "Configuration | Aktivere und starte Service"
|
|
ansible.builtin.systemd:
|
|
name: grafana-server
|
|
enabled: true
|
|
state: started
|
|
daemon_reload: true
|
|
|
|
- name: "Configuration | Erzeuge Grafana-Konfiguration"
|
|
ansible.builtin.template:
|
|
src: grafana.ini
|
|
dest: /etc/grafana/grafana.ini
|
|
mode: "0640"
|
|
notify: Restart grafana-server
|
|
|
|
- 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
|
|
|
|
- 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
|