Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jasonheecs/ansible-ubuntu-fail2ban
An ansible role that installs and configure Fail2ban for Ubuntu machines
https://github.com/jasonheecs/ansible-ubuntu-fail2ban
ansible ansible-role fail2ban role setup ubuntu
Last synced: about 2 months ago
JSON representation
An ansible role that installs and configure Fail2ban for Ubuntu machines
- Host: GitHub
- URL: https://github.com/jasonheecs/ansible-ubuntu-fail2ban
- Owner: jasonheecs
- License: mit
- Created: 2018-03-16T11:33:25.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-19T11:30:53.000Z (over 6 years ago)
- Last Synced: 2024-07-30T16:55:46.241Z (6 months ago)
- Topics: ansible, ansible-role, fail2ban, role, setup, ubuntu
- Language: Makefile
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Ansible Role: Fail2ban for Ubuntu
=========
[![Build Status](https://travis-ci.org/jasonheecs/ansible-ubuntu-fail2ban.svg?branch=master)](https://travis-ci.org/jasonheecs/ansible-ubuntu-fail2ban)Installs and configures [Fail2ban](https://www.fail2ban.org/) for Ubuntu machines
Requirements
------------None.
Installation
------------`ansible-galaxy install jasonheecs.ubuntu-fail2ban`
Role Variables
--------------Available variables are listed below, along with default values (see defaults/main.yml):
```
fail2ban_loglevel: INFO
fail2ban_logtarget: /var/log/fail2ban.log
fail2ban_socket: /var/run/fail2ban/fail2ban.sockfail2ban_ignoreip: 127.0.0.1/8
fail2ban_bantime: 600
fail2ban_maxretry: 6fail2ban_backend: polling
fail2ban_destemail: root@localhost
fail2ban_banaction: iptables-multiport
fail2ban_mta: sendmail
fail2ban_protocol: tcp
fail2ban_chain: INPUTfail2ban_action: action_
fail2ban_services:
- name: ssh
port: ssh
filter: sshd
logpath: /var/log/auth.log
```Dependencies
------------None.
Example Playbook
----------------```
- hosts: all
become: yes
roles:
- { role: jasonheecs.ubuntu-fail2ban }
```License
-------MIT
Author Information
------------------[Jason Hee](https://jasonhee.com)