ansible-role-fail2ban/test/integration/fail2ban/default.yml

21 lines
461 B
YAML
Raw Normal View History

2018-11-29 18:34:40 +00:00
---
2018-08-05 20:25:51 +00:00
- hosts: fail2ban
connection: local
vars:
fail2ban_jails:
- name: ssh
logpath: /var/log/alternatives.log
filter: sshd
port: 22
- name: nextcloud
logpath: /var/log/alternatives.log
filter: nextcloud
port: 80,443
additional:
maxretry: 2
fail2ban_filters:
- name: nextcloud
2018-11-29 18:34:40 +00:00
failregex: Login failed.*Remote IP.*'<HOST>'
2018-08-05 20:25:51 +00:00
roles:
2018-11-29 18:34:40 +00:00
- ansible-role-fail2ban