diff --git a/handlers/main.yml b/handlers/main.yml index 1ac640a..beb4e62 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -3,3 +3,8 @@ service: name: "{{ security_sshd_name }}" state: "{{ security_ssh_restart_handler_state }}" + +- name: reload fail2ban + service: + name: fail2ban + state: reloaded diff --git a/tasks/fail2ban.yml b/tasks/fail2ban.yml index 1fab2f4..f82f5e4 100644 --- a/tasks/fail2ban.yml +++ b/tasks/fail2ban.yml @@ -19,6 +19,8 @@ owner: root group: root mode: 0644 + notify: + - reload fail2ban - name: Ensure fail2ban is running and enabled on boot. service: