ansible-role-nextcloud/tasks/fail2ban.yml

13 lines
368 B
YAML

---
- 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