From 07e2f241f3598fc66736c987664b1d76aac6dfed Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 26 Feb 2026 16:20:40 +0100 Subject: [PATCH] Run the fail2ban handler only when fail2ban is installed and enabled. --- handlers/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/handlers/main.yml b/handlers/main.yml index 1077af3..9971a31 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -24,6 +24,7 @@ name: fail2ban state: started enabled: true + when: fail2ban_enabled - name: Enable and start firewalld ansible.builtin.service: