manala.fail2ban

#######################################################################################################

:exclamation: DEPRECATION :exclamation:

This repository and the role associated are deprecated in favor of the Manala Ansible Collection

You will find informations on its usage on the collection repository

#######################################################################################################

Ansible Role: Fail2Ban Build Status

:exclamation: Report issues and send Pull Requests in the main Ansible Role repository :exclamation:

This role will deal with the setup and config of Fail2Ban.

It's part of the Manala Ansible stack but can be used as a stand alone component.

Requirements

None.

Dependencies

None.

Installation

Ansible 2+

Using ansible galaxy cli:

ansible-galaxy install manala.fail2ban

Using ansible galaxy requirements file:

- src: manala.fail2ban

Role Handlers

Name Type Description
fail2ban restart Service Restart fail2ban server

Role Variables

Name Default Type Description
manala_fail2ban_install_packages ~ Array Dependency packages to install
manala_fail2ban_install_packages_default ['fail2ban'] Array Default dependency packages to install
manala_fail2ban_config_template 'config/empty.j2' String Main config template
manala_fail2ban_config [] Array Main config

Configuration

manala_fail2ban_config:
  - DEFAULT:
    - maxretry: 5
  - apache:
    - enabled: true

Example playbook

- hosts: servers
  roles:
    - { role: manala.fail2ban }

Licence

MIT

Author information

Manala (http://www.manala.io/)

Install
ansible-galaxy install manala.fail2ban
GitHub repository
License
Unknown
Downloads
4.1k
Owner
Manala is an open source project supported by the french web agency ELAO providing advanced ansible roles for website's infrastructures and far more.