Run the fail2ban handler only when fail2ban is installed and enabled.
This commit is contained in:
parent
7e7f96b0b6
commit
07e2f241f3
|
|
@ -24,6 +24,7 @@
|
|||
name: fail2ban
|
||||
state: started
|
||||
enabled: true
|
||||
when: fail2ban_enabled
|
||||
|
||||
- name: Enable and start firewalld
|
||||
ansible.builtin.service:
|
||||
|
|
|
|||
Loading…
Reference in New Issue