Browse Source

removed template and implemented logic

Marius Voila 9 years ago
parent
commit
2ae2c3683c
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      roles/common/templates/etc_fail2ban_jail.local.j2

+ 4
- 0
roles/common/templates/etc_fail2ban_jail.local.j2 View File

@@ -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…
Cancel
Save