homeserver/roles/mgrote.fail2ban/tasks/main.yml

23 lines
515 B
YAML
Raw Normal View History

2020-08-18 11:57:53 +02:00
---
- name: install fail2ban-packages
become: yes
ansible.builtin.package:
name: fail2ban
state: present
2020-08-18 11:57:53 +02:00
- name: copy jail.local
become: yes
ansible.builtin.template:
src: jail.local
dest: /etc/fail2ban/jail.local
mode: 0750
notify: restart_f2b
2020-08-18 11:57:53 +02:00
- name: copy sendmail-common.local
become: yes
ansible.builtin.template:
src: sendmail-common.local
dest: /etc/fail2ban/action.d/sendmail-common.local
mode: 0750
notify: restart_f2b