ansible-role-grafana/tasks/grafana.yml
phil eef1930fa9 grafana: Lösche influxdb-Monitoring
Influxdb wird mit dieser Rolle nicht installiert.
2022-12-28 16:46:43 +01:00

38 lines
1 KiB
YAML

---
- name: grafana | Aktivere und starte Service"
ansible.builtin.systemd:
name: grafana-server
enabled: true
state: started
daemon_reload: true
- 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
- name: "grafana | Aktiviere Monit-Ueberwachung"
ansible.builtin.copy:
src: "grafana.monit"
dest: "/etc/monit/conf-enabled/grafana"
mode: 0644
notify: reload monit
- name: "grafana | fail2ban-Konfiguration kopieren"
ansible.builtin.copy:
src: "fail2ban/{{ item.src }}"
dest: "/etc/fail2ban/{{ item.dest }}"
mode: 0644
loop:
- src: jail.conf
dest: jail.d/grafana.conf
- src: filter.conf
dest: filter.d/grafana.conf
notify: reload fail2ban