Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samdoran/ansible-role-fail2ban
Ansible role to install and configure Fail2Ban
https://github.com/samdoran/ansible-role-fail2ban
Last synced: 22 days ago
JSON representation
Ansible role to install and configure Fail2Ban
- Host: GitHub
- URL: https://github.com/samdoran/ansible-role-fail2ban
- Owner: samdoran
- Created: 2017-10-23T15:35:12.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2023-01-18T13:55:36.000Z (almost 2 years ago)
- Last Synced: 2024-11-01T09:14:33.636Z (2 months ago)
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Fail2ban
========
[![Galaxy](https://img.shields.io/badge/galaxy-samdoran.fail2ban-blue.svg?style=flat)](https://galaxy.ansible.com/samdoran/fail2ban)Install and configure [Fail2ban](http://www.fail2ban.org/wiki/index.php/Main_Page).
Currently only the `sshd` jail file is configured.
Requirements
------------- EPEL repository enabled
- Firewall configured and runningRole Variables
--------------| Name | Default Value | Description |
|-------------------|---------------------|----------------------|
| `fail2ban_jail_path` | `/etc/fail2ban/jail.d` | Directory where jail files are copied |
| `fail2ban_ignore_ips` | `127.0.0.1/8` | List of IPs to ignore. |Dependencies
------------- `samdoran.repo-epel`
Example Playbook
----------------- hosts: all
roles:
- samdoran.repo-epel
- samdoran.firewall
- samdoran.fail2banLicense
-------MIT