chore 📦: Update Fail2ban settings and add/restart/reload tasks
This commit updates the Fail2ban configuration to reduce bantime and findtime, and adds/fixes restart/reload tasks in handlers/main.yml. These changes aim to improve security and manageability of the fail2ban service.
This commit is contained in:
@@ -32,10 +32,18 @@
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
|
||||
- name: Restart fail2ban
|
||||
- name: Reload fail2ban
|
||||
ansible.builtin.systemd:
|
||||
name: fail2ban
|
||||
state: reloaded
|
||||
enabled: true
|
||||
|
||||
- name: Restart fail2ban
|
||||
ansible.builtin.systemd:
|
||||
name: fail2ban
|
||||
state: restarted
|
||||
enabled: true
|
||||
|
||||
|
||||
- name: Reload pve firewall
|
||||
ansible.builtin.command: pve-firewall reload
|
||||
|
||||
Reference in New Issue
Block a user