homeserver/roles/mgrote_fail2ban/tasks/main.yml
Michael Grote 7a24089031 fix linter errors (#584)
Reviewed-on: #584
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2023-10-25 22:26:17 +02:00

23 lines
484 B
YAML

---
- name: install fail2ban-packages
become: true
ansible.builtin.package:
name: fail2ban
state: present
- name: copy jail.local
become: true
ansible.builtin.template:
src: jail.local
dest: /etc/fail2ban/jail.local
mode: "0750"
notify: restart_f2b
- name: copy sendmail-common.local
become: true
ansible.builtin.template:
src: sendmail-common.local
dest: /etc/fail2ban/action.d/sendmail-common.local
mode: "0750"
notify: restart_f2b