alonisser / ansible_fail2ban_nginx

Ansible role to install nginx specific Fail2Ban jails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Ansible Galaxy

ansible_fail2ban_nginx

This role installs sane nginx jails for ansible Mostly based on this Digital Ocean article This Role assumes you already have fail2ban installed correctly

Requirements

fail2ban installed

Role Variables

Available vars:

nginx_logpath defaults to: /var/log/nginx/access.log

fail2ban_service_location defaults to: /etc/init.d/fail2ban

Dependencies

Example Playbook

- hosts: nginx_servers
  roles:
    - role: fail2ban_nginx

Also see the tests for example

License

MIT

Author Information

About

Ansible role to install nginx specific Fail2Ban jails

License:MIT License


Languages

Language:Shell 100.0%