Run the fail2ban handler only when fail2ban is installed and enabled.

This commit is contained in:
Andrea Dell'Amico 2026-02-26 16:20:40 +01:00
parent 7e7f96b0b6
commit 07e2f241f3
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@
name: fail2ban
state: started
enabled: true
when: fail2ban_enabled
- name: Enable and start firewalld
ansible.builtin.service: