Browse Source

Install fail2ban with IPv6 support from stretch-backports (Debian 9).

Thomas Buck 5 years ago
parent
commit
5684f3c673
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      roles/common/tasks/security.yml

+ 8
- 1
roles/common/tasks/security.yml View File

4
     state: present
4
     state: present
5
   vars:
5
   vars:
6
     packages:
6
     packages:
7
-    - fail2ban
8
     - whois
7
     - whois
9
     - lynis
8
     - lynis
10
     - rkhunter
9
     - rkhunter
11
   tags:
10
   tags:
12
     - dependencies
11
     - dependencies
13
 
12
 
13
+- name: Install newer fail2ban with IPv6 support
14
+  apt:
15
+    name: "fail2ban"
16
+    state: present
17
+    default_release: stretch-backports
18
+  tags:
19
+    - dependencies
20
+
14
 - name: Copy fail2ban configuration into place
21
 - name: Copy fail2ban configuration into place
15
   template: src=etc_fail2ban_jail.local.j2 dest=/etc/fail2ban/jail.local
22
   template: src=etc_fail2ban_jail.local.j2 dest=/etc/fail2ban/jail.local
16
   notify: restart fail2ban
23
   notify: restart fail2ban

Loading…
Cancel
Save