This commit is contained in:
Ruben Blanco 2023-10-19 12:57:24 +02:00
parent 3c624134f4
commit 8cc6adb8a4
1 changed files with 22 additions and 22 deletions

View File

@ -7,28 +7,28 @@
tasks:
- name: set variables
set_fact:
bantime: "10m"
maxretry: "10"
findtime: "10m"
jails:
- name: sshd
enabled: true
filter: sshd
logpath: /var/log/lastlog
port: ['ssh', '22']
maxretry: 10
bantime: 10m
findtime: 10m
- name: asterisk
enabled: true
filter: asterisk
logpath: /var/log/asterisk/messages
port: ['asterisk', '5060']
maxretry: 10
bantime: 10m
findtime: 10m
# - name: set variables
# set_fact:
# bantime: "10m"
# maxretry: "10"
# findtime: "10m"
# jails:
# - name: sshd
# enabled: true
# filter: sshd
# logpath: /var/log/lastlog
# port: ['ssh', '22']
# maxretry: 10
# bantime: 10m
# findtime: 10m
# - name: asterisk
# enabled: true
# filter: asterisk
# logpath: /var/log/asterisk/messages
# port: ['asterisk', '5060']
# maxretry: 10
# bantime: 10m
# findtime: 10m
- name: "[CONFIG FAIL2BAN] Install and configure fail2ban service"
import_role: