2024-09-24 07:38:05 +00:00
|
|
|
- name: Install fail2ban packages
|
2024-09-23 12:30:38 +00:00
|
|
|
apt:
|
|
|
|
name: fail2ban
|
|
|
|
state: present
|
|
|
|
loop:
|
|
|
|
- fail2ban
|
|
|
|
- rsyslog
|
2024-09-24 07:38:05 +00:00
|
|
|
- name: Configure fail2ban service
|
2024-09-23 12:30:38 +00:00
|
|
|
template:
|
2024-09-27 11:26:47 +00:00
|
|
|
src: jail.local
|
2024-09-23 12:30:38 +00:00
|
|
|
dest: /etc/fail2ban/jail.local
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: '0644'
|
|
|
|
notify: restart-fail2ban
|