30 lines
716 B
YAML
30 lines
716 B
YAML
|
---
|
||
|
- name: "grafana | Erzeuge Grafana-Konfiguration"
|
||
|
ansible.builtin.template:
|
||
|
src: grafana.ini
|
||
|
dest: /etc/grafana/grafana.ini
|
||
|
mode: 0640
|
||
|
notify: restart grafana
|
||
|
|
||
|
- name: "grafana | Aktiviere Monit-Ueberwachung"
|
||
|
ansible.builtin.copy:
|
||
|
src: "{{ item }}.monit"
|
||
|
dest: "/etc/monit/conf-enabled/{{ item }}"
|
||
|
mode: 0644
|
||
|
notify: reload monit
|
||
|
loop:
|
||
|
- grafana
|
||
|
- influxdb
|
||
|
|
||
|
- 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
|