Run the fail2ban handler only when fail2ban is installed and enabled. For real this time.
This commit is contained in:
parent
07e2f241f3
commit
665c2c84be
|
|
@ -13,11 +13,13 @@
|
|||
ansible.builtin.service:
|
||||
name: fail2ban
|
||||
state: restarted
|
||||
when: fail2ban_enabled
|
||||
|
||||
- name: Reload fail2ban
|
||||
ansible.builtin.service:
|
||||
name: fail2ban
|
||||
state: reloaded
|
||||
when: fail2ban_enabled
|
||||
|
||||
- name: Enable and start fail2ban
|
||||
ansible.builtin.service:
|
||||
|
|
|
|||
Loading…
Reference in New Issue