nextcloud: Sichere Instanze mit fail2ban ab
This commit is contained in:
parent
2480af061b
commit
68eb272cc2
5 changed files with 37 additions and 0 deletions
12
tasks/fail2ban.yml
Normal file
12
tasks/fail2ban.yml
Normal file
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
- name: "fail2ban | {{ instance.name }} | Kopiere Filter"
|
||||
copy:
|
||||
src: fail2ban/filter.conf
|
||||
dest: /etc/fail2ban/filter.d/nextcloud.conf
|
||||
notify: restart fail2ban
|
||||
|
||||
- name: "fail2ban | {{ instance.name }} | Kopiere Jail"
|
||||
template:
|
||||
src: fail2ban/jail.conf.j2
|
||||
dest: /etc/fail2ban/jail.d/nextcloud-{{ instance.user }}.conf
|
||||
notify: restart fail2ban
|
|
@ -27,3 +27,6 @@
|
|||
|
||||
- import_tasks: fixes.yml
|
||||
tags: fixes
|
||||
|
||||
- import_tasks: fail2ban.yml
|
||||
tags: fail2ban
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue