summaryrefslogtreecommitdiff
blob: 6d8e23798cc5055969fc55aa079c6c607d3be563 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
# dovecot is configured to respect the fail2ban deny decisions
# A failed login is recorded as:
# dovecot[<pid>]: imap-login: access(tcpwrap): Client refused (rip=<ip>)
- name: install fail2ban
  apt:
    name: fail2ban
    state: latest
    install_recommends: false

- name: copy fail2ban config
  copy:
    src: fail2ban/
    dest: /etc/fail2ban/
    mode: preserve
  notify:
  - restart fail2ban


# verify everything is running
- name: verify services are running in dependency order
  service:
    name: "{{ item }}"
    enabled: yes
    state: started
  loop:
    - fail2ban
Powered by cgit v1.2.3 (git 2.41.0)