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