Update Nextcloud role to include Hiddenservice tasks

This commit is contained in:
phil 2023-05-21 23:01:31 +02:00
parent 7f42bc9fd2
commit 63eb7d74f7
23 changed files with 282 additions and 244 deletions

View file

@ -1,12 +1,14 @@
---
- name: "fail2ban | {{ instance.name }} | Kopiere Filter"
copy:
- name: "Fail2ban | Kopiere Filter | {{ item.name }}"
ansible.builtin.copy:
src: fail2ban/filter.conf
dest: /etc/fail2ban/filter.d/nextcloud.conf
mode: "0644"
notify: restart fail2ban
- name: "fail2ban | {{ instance.name }} | Kopiere Jail"
template:
- name: "Fail2ban | Kopiere Jail | {{ item.name }}"
ansible.builtin.template:
src: fail2ban/jail.conf.j2
dest: /etc/fail2ban/jail.d/nextcloud-{{ instance.user }}.conf
dest: /etc/fail2ban/jail.d/nextcloud-{{ item.user }}.conf
mode: "0644"
notify: restart fail2ban