Fix a fail2ban conditional.

This commit is contained in:
Andrea Dell'Amico 2026-03-25 14:34:01 +01:00
parent edb2e22199
commit f7dd11e605
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
- name: Restart fail2ban after an iptables restart
service: name=fail2ban state=restarted enabled=yes
when: has_fail2ban
when: fail2ban_enabled is defined and fail2ban_enabled
- name: Enable and start firewalld
service: name=firewalld state=started enabled=yes