瀏覽代碼

removed template and implemented logic

Marius Voila 9 年之前
父節點
當前提交
2ae2c3683c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      roles/common/templates/etc_fail2ban_jail.local.j2

+ 4
- 0
roles/common/templates/etc_fail2ban_jail.local.j2 查看文件

@@ -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…
取消
儲存