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:
2026-03-01 10:22:58 +01:00
parent 7c304765a4
commit bc91383094
2 changed files with 12 additions and 4 deletions

View File

@@ -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