ansible-role-nextcloud/tasks/fail2ban.yml

15 lines
422 B
YAML
Raw Normal View History

---
- 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 | Kopiere Jail | {{ item.name }}"
ansible.builtin.template:
src: fail2ban/jail.conf.j2
dest: /etc/fail2ban/jail.d/nextcloud-{{ item.user }}.conf
mode: "0644"
notify: restart fail2ban