Oefenweb / ansible-fail2ban

Ansible role to set up fail2ban in Debian-like systems
MIT License
117 stars 55 forks source link

Added python3-systemd as a dependency for systemd backend #79

Closed Ragilo closed 7 months ago

Ragilo commented 7 months ago

This pull request proposes adding python3-systemd as a dependency in the Fail2Ban configuration when the backend is set to systemd. This addresses an issue on Debian 12 where Fail2Ban fails to function correctly without this dependency. I encountered this problem while trying to use this role for a Fail2Ban installation on Debian 12. The service was crashing when using systemd as the backend, which I discovered was due to the absence of the python3-systemd package. Without this package, Fail2Ban couldn't connect to the systemd journal, resulting in the service failing to start. I found this related issue and solution in the Fail2Ban repository, which highlighted this exact problem and its fix.