
fail2ban role¶
Install and configure fail2ban.
Usage¶
Configure all depending roles.
fail2ban_packages:
- name: fail2ban # default: fail2ban
fail2ban_enabled: true # default: false
fail2ban_sshd_enabled: "false" # default: "true"
fail2ban_ignoreip: 84.75.180.227
fail2ban_bantime: 10m # default: 1d
Include it in your playbook.
Docs¶
Show status¶
Run fail2ban-client status sshd to get the status of the fail2ban service.
Show status for alls hosts.
Stop fail2ban service¶
To stop the fail2ban service run: