nextcloud: Sichere Instanze mit fail2ban ab

This commit is contained in:
phil 2022-07-26 17:32:31 +02:00
parent 2480af061b
commit 68eb272cc2
5 changed files with 37 additions and 0 deletions

12
tasks/fail2ban.yml Normal file
View 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

View file

@ -27,3 +27,6 @@
- import_tasks: fixes.yml
tags: fixes
- import_tasks: fail2ban.yml
tags: fail2ban