diff --git a/files/fail2ban/filter.conf b/files/fail2ban/filter.conf deleted file mode 100644 index bf549a8..0000000 --- a/files/fail2ban/filter.conf +++ /dev/null @@ -1,10 +0,0 @@ -[INCLUDES] -before = common.conf - -[Definition] -failregex = ^ lvl=[a-zA-z]* msg=\"Invalid username or password\" (?:\S*=(?:\".*\"|\S*) )*remote_addr= - -ignoreregex = - -[Init] -datepattern = ^t=%%Y-%%m-%%dT%%H:%%M:%%S%%z \ No newline at end of file diff --git a/files/fail2ban/jail.conf b/files/fail2ban/jail.conf deleted file mode 100644 index 9d1d552..0000000 --- a/files/fail2ban/jail.conf +++ /dev/null @@ -1,7 +0,0 @@ -[grafana] -enabled = true -findtime = 3600 -bantime = 3600 -port = http,https -filter = grafana -logpath = /var/log/grafana/grafana.log \ No newline at end of file diff --git a/tasks/grafana.yml b/tasks/grafana.yml index f1bcac7..b053eea 100644 --- a/tasks/grafana.yml +++ b/tasks/grafana.yml @@ -24,15 +24,3 @@ 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