23 lines
501 B
YAML
23 lines
501 B
YAML
|
---
|
||
|
- name: install fail2ban-packages
|
||
|
become: yes
|
||
|
apt:
|
||
|
name: fail2ban
|
||
|
state: present
|
||
|
|
||
|
- name: copy jail.local
|
||
|
become: yes
|
||
|
template:
|
||
|
src: jail.local
|
||
|
dest: /etc/fail2ban/jail.local
|
||
|
mode: 0750
|
||
|
notify: restart_f2b
|
||
|
|
||
|
- name: copy sendmail-common.local
|
||
|
become: yes
|
||
|
template:
|
||
|
src: sendmail-common.local
|
||
|
dest: /etc/fail2ban/action.d/sendmail-common.local
|
||
|
mode: 0750
|
||
|
notify: restart_f2b
|