Configures fail2ban for debian servers
- installs fail2ban
- set journald default source
- set journald logtarget
- configure ssh
- set timer for timeout
- sets ignore ip adresses
- if apache2 is installed, configuring it
To run solo:
ansible-galaxy install -r requirements.yml
ansible-playbook -i localhost, fail2ban.yml
- lihas_variables
---
- hosts: '*'
role: lihas_fail2ban
...
- X.config.fail2ban.ignoreip: []
- X: string, use host or groupname
- []: list of ips to ignore
GNU General Public License v3.0