2022-07-26 17:32:31 +02:00
|
|
|
---
|
2023-05-21 23:01:31 +02:00
|
|
|
- name: "Fail2ban | Kopiere Filter | {{ item.name }}"
|
|
|
|
ansible.builtin.copy:
|
2022-07-26 17:32:31 +02:00
|
|
|
src: fail2ban/filter.conf
|
|
|
|
dest: /etc/fail2ban/filter.d/nextcloud.conf
|
2023-05-21 23:01:31 +02:00
|
|
|
mode: "0644"
|
2022-07-26 17:32:31 +02:00
|
|
|
notify: restart fail2ban
|
|
|
|
|
2023-05-21 23:01:31 +02:00
|
|
|
- name: "Fail2ban | Kopiere Jail | {{ item.name }}"
|
|
|
|
ansible.builtin.template:
|
2022-07-26 17:32:31 +02:00
|
|
|
src: fail2ban/jail.conf.j2
|
2023-05-21 23:01:31 +02:00
|
|
|
dest: /etc/fail2ban/jail.d/nextcloud-{{ item.user }}.conf
|
|
|
|
mode: "0644"
|
2022-07-26 17:32:31 +02:00
|
|
|
notify: restart fail2ban
|