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