An Ansible role to install fail2ban on Ubuntu/Debian.
- Ansible >= 2.9
- Supported platforms:
- Ubuntu
The variables used in this role are defined in defaults/main.yml
and can be customized as per your requirements. Here are some of the main variables:
Variable | Default Value | Description |
---|---|---|
logelevel |
INFO |
log level |
ban_ignoreip |
INFO |
excluded ips |
bantime |
600 |
number of seconds an IP address is banned |
findtime |
600 |
retris must occur within the findtime duration. |
maxretry |
5 |
max retries before ban |
This role has no external dependencies.
Here is an example of how to use this role in a playbook:
---
- name: Install and configure Fail2ban.
hosts: all
become: true
roles:
- role: walidsa3d.failban
This project is licensed under the MIT License. See the LICENSE file for more details.