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