ansible-role-grafana/tasks/grafana.yml

27 lines
724 B
YAML
Raw Normal View History

2022-12-27 10:43:32 +01:00
---
2022-12-28 16:39:30 +01:00
- name: grafana | Aktivere und starte Service"
ansible.builtin.systemd:
name: grafana-server
enabled: true
state: started
daemon_reload: true
2022-12-27 10:43:32 +01:00
- name: "grafana | Erzeuge Grafana-Konfiguration"
ansible.builtin.template:
src: grafana.ini
dest: /etc/grafana/grafana.ini
mode: 0640
notify: restart grafana
- name: "grafana | Installiere Image Renderer Module"
ansible.builtin.command:
cmd: grafana-cli plugins install grafana-image-renderer
creates: /var/lib/grafana/plugins/grafana-image-renderer
2022-12-27 10:43:32 +01:00
- name: "grafana | Aktiviere Monit-Ueberwachung"
ansible.builtin.copy:
src: "grafana.monit"
dest: "/etc/monit/conf-enabled/grafana"
2022-12-27 10:43:32 +01:00
mode: 0644
notify: reload monit