Explorar el Código

removed template and implemented logic

Marius Voila hace 9 años
padre
commit
2ae2c3683c
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4
    0
      roles/common/templates/etc_fail2ban_jail.local.j2

+ 4
- 0
roles/common/templates/etc_fail2ban_jail.local.j2 Ver fichero

@@ -28,7 +28,11 @@ maxretry = 1
28 28
 enabled = true
29 29
 filter = dovecot-pop3imap
30 30
 action = iptables-multiport[name=dovecot-pop3imap, port="pop3,imap,993,995", protocol=tcp]
31
+{% if ansible_distribution == 'Ubuntu' %}
32
+logpath = /var/log/mail.log
33
+{% else %}
31 34
 logpath = /var/log/maillog
35
+{% endif %}
32 36
 maxretry = 20
33 37
 findtime = 1200
34 38
 bantime = 1200

Loading…
Cancelar
Guardar