From b7c5c87319f02ade28f3dff54964946e6530ecff Mon Sep 17 00:00:00 2001 From: Ada Date: Wed, 17 Apr 2024 10:59:47 +0200 Subject: [PATCH] Fix fail2ban backend --- ansible/roles/fail2ban/templates/sshd.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/fail2ban/templates/sshd.conf.j2 b/ansible/roles/fail2ban/templates/sshd.conf.j2 index b422245..cba66b2 100755 --- a/ansible/roles/fail2ban/templates/sshd.conf.j2 +++ b/ansible/roles/fail2ban/templates/sshd.conf.j2 @@ -2,7 +2,7 @@ enabled = true bantime = -1 maxretry = 3 -{% if ansible_facts['os_family'] == "RedHat" %} backend = systemd +{% if ansible_facts['os_family'] == "RedHat" %} banaction = firewallcmd-ipset {% endif %} \ No newline at end of file