瀏覽代碼

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

Thomas Buck 5 年之前
父節點
當前提交
5684f3c673
共有 1 個檔案被更改,包括 8 行新增1 行删除
  1. 8
    1
      roles/common/tasks/security.yml

+ 8
- 1
roles/common/tasks/security.yml 查看文件

@@ -4,13 +4,20 @@
4 4
     state: present
5 5
   vars:
6 6
     packages:
7
-    - fail2ban
8 7
     - whois
9 8
     - lynis
10 9
     - rkhunter
11 10
   tags:
12 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 21
 - name: Copy fail2ban configuration into place
15 22
   template: src=etc_fail2ban_jail.local.j2 dest=/etc/fail2ban/jail.local
16 23
   notify: restart fail2ban

Loading…
取消
儲存