summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/fail2ban.yml
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2018-12-09 18:41:06 +0100
committerGuilhem Moulin <guilhem@fripost.org>2018-12-09 20:25:40 +0100
commite2ddcfc51f66c2a52a401064eab005e793f148ee (patch)
tree7c14243b2d53f81e54c9ee77dc526c71559e572a /roles/common/tasks/fail2ban.yml
parent7d9380c2c9dd87876ce4d9f9b30c934505fcba51 (diff)
Update 'IMAP', 'MSA' and 'LDAP-provider' roles to Debian Stretch.
Diffstat (limited to 'roles/common/tasks/fail2ban.yml')
-rw-r--r--roles/common/tasks/fail2ban.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/roles/common/tasks/fail2ban.yml b/roles/common/tasks/fail2ban.yml
index be26c79..da4db51 100644
--- a/roles/common/tasks/fail2ban.yml
+++ b/roles/common/tasks/fail2ban.yml
@@ -1,28 +1,29 @@
- name: Install fail2ban
apt: pkg=fail2ban
- name: Add addititional filters
copy: src=etc/fail2ban/filter.d/{{ item }}
dest=/etc/fail2ban/filter.d/{{ item }}
owner=root group=root
mode=0644
register: r1
with_items:
+ - dovecot.conf
- roundcube.conf
notify:
- Restart fail2ban
- name: Configure fail2ban
template: src=etc/fail2ban/jail.local.j2
dest=/etc/fail2ban/jail.local
owner=root group=root
mode=0644
register: r2
notify:
- Restart fail2ban
- name: Start fail2ban
service: name=fail2ban state=started
when: not (r1.changed or r2.changed)
- meta: flush_handlers