All Projects → robertdebock → ansible-role-fail2ban

robertdebock / ansible-role-fail2ban

Licence: Apache-2.0 license
Install and configure fail2ban on your system.

Projects that are alternatives of or similar to ansible-role-fail2ban

ansible-role-rsyslog
Install and configure rsyslog on your system.
Stars: ✭ 14 (-66.67%)
Mutual labels:  installer, playbook, molecule, tox
ansible-role-tomcat
Install and configure tomcat on your system.
Stars: ✭ 34 (-19.05%)
Mutual labels:  playbook, molecule, tox
ansible-role-dsvpn
Install and configure dsvpn on your system.
Stars: ✭ 18 (-57.14%)
Mutual labels:  playbook, molecule, tox
ansible-role-dns
Install and configure dns on your system.
Stars: ✭ 39 (-7.14%)
Mutual labels:  playbook, molecule, tox
ansible-role-logrotate
Install and configure logrotate on your system.
Stars: ✭ 13 (-69.05%)
Mutual labels:  playbook, molecule, tox
Ansible Role Bootstrap
Prepare your system to be managed by Ansible.
Stars: ✭ 106 (+152.38%)
Mutual labels:  playbook, molecule, tox
ansible-blackbox-exporter
Blackbox prober exporter
Stars: ✭ 60 (+42.86%)
Mutual labels:  molecule, tox
ansible-fluentd
Provision fluentd log collector
Stars: ✭ 20 (-52.38%)
Mutual labels:  molecule, tox
Ansible Node Exporter
Provision basic metrics exporter for prometheus monitoring tool
Stars: ✭ 263 (+526.19%)
Mutual labels:  molecule, tox
ansible-coredns
Ansible provisioning of CoreDNS
Stars: ✭ 25 (-40.48%)
Mutual labels:  molecule, tox
Ansible Prometheus
Deploy Prometheus monitoring system
Stars: ✭ 758 (+1704.76%)
Mutual labels:  molecule, tox
Ansible Alertmanager
Deploy Prometheus Alertmanager service
Stars: ✭ 93 (+121.43%)
Mutual labels:  molecule, tox
Ansible Grafana
Platform for analytics and monitoring
Stars: ✭ 340 (+709.52%)
Mutual labels:  molecule, tox
ansible-haproxy
Ansible HAproxy role for Unified OpenStack Installer and others.
Stars: ✭ 35 (-16.67%)
Mutual labels:  playbook, molecule
ansible-snmp-exporter
Provision SNMP metrics exporter for prometheus monitoring
Stars: ✭ 18 (-57.14%)
Mutual labels:  molecule, tox
Dark Souls Config Utility
All-in-one installer and configuration UI for various mods/fixes for Dark Souls™: Prepare to Die Edition.
Stars: ✭ 27 (-35.71%)
Mutual labels:  installer
elk-upgrade
Elastic Stack Upgrade with Ansible
Stars: ✭ 28 (-33.33%)
Mutual labels:  playbook
platformio-core-installer
PlatformIO Core Installer
Stars: ✭ 53 (+26.19%)
Mutual labels:  installer
automated-testing-playbook
A set of principles, practices, idioms, and strategies pertaining to automated software testing and its adoption
Stars: ✭ 50 (+19.05%)
Mutual labels:  playbook
defense
🔮 A Crystal HTTP handler for throttling, blocking and tracking malicious requests.
Stars: ✭ 51 (+21.43%)
Mutual labels:  fail2ban

fail2ban

Install and configure fail2ban on your system.

GitHub GitLab Quality Downloads Version
github gitlab quality downloads Version

Example Playbook

This example is taken from molecule/default/converge.yml and is tested on each push, pull request and release.

---
- name: Converge
  hosts: all
  become: yes
  gather_facts: yes

  roles:
    - role: robertdebock.fail2ban

The machine needs to be prepared. In CI this is done using molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  gather_facts: no
  become: yes

  roles:
    - role: robertdebock.bootstrap
    - role: robertdebock.epel

Also see a full explanation and example on how to use these roles.

Role Variables

The default values for the variables are set in defaults/main.yml:

---
# defaults file for fail2ban

fail2ban_loglevel: INFO
fail2ban_logtarget: /var/log/fail2ban.log

fail2ban_ignoreself: "true"
fail2ban_ignoreips:
  - "127.0.0.1/8 ::1"

# In seconds
fail2ban_bantime: 600
fail2ban_findtime: 600

fail2ban_maxretry: 5
fail2ban_destemail: root@localhost
fail2ban_sender: root@{{ ansible_fqdn }}

fail2ban_configuration: []
#  - option: loglevel
#    value: "INFO"
#    section: Definition

fail2ban_jail_configuration: []
#  - option: ignoreself
#    value: "true"
#    section: DEFAULT

# Path to directory containing filters to copy in filter.d
# fail2ban_filterd_path:

Requirements

Status of used roles

The following roles are used to prepare a system. You can prepare your system in another way.

Requirement GitHub GitLab
robertdebock.bootstrap Build Status GitHub Build Status GitLab
robertdebock.epel Build Status GitHub Build Status GitLab

Context

This role is a part of many compatible roles. Have a look at the documentation of these roles for further information.

Here is an overview of related roles: dependencies

Compatibility

This role has been tested on these container images:

container tags
amazon Candidate
el 8
debian all
fedora 36
ubuntu all

The minimum version of Ansible required is 2.10, tests have been done to:

  • The previous version.
  • The current version.
  • The development version.

If you find issues, please register them in GitHub

License

Apache-2.0

Author Information

robertdebock

Please consider sponsoring me.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].