summaryrefslogtreecommitdiffstats
path: root/roles/common/tasks/fail2ban.yml
blob: 3c13d8c055f0a1609fd0fc0fe5850fff525da034 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- name: Install fail2ban
  apt: pkg=fail2ban

- name: Configure fail2ban
  template: src=etc/fail2ban/jail.local.j2
            dest=/etc/fail2ban/jail.local
            owner=root group=root
            mode=0644
  notify:
    - Restart fail2ban

- name: Start fail2ban
  service: name=fail2ban state=started

- meta: flush_handlers