2022-03-13 22:31:02 +01:00
|
|
|
---
|
|
|
|
- name: Install fail2ban
|
|
|
|
become: true
|
|
|
|
apt:
|
|
|
|
name: fail2ban
|
|
|
|
state: present
|
2022-06-25 14:48:38 +02:00
|
|
|
update_cache: true
|
2022-03-13 22:31:02 +01:00
|
|
|
|
|
|
|
- name: Configure fail2ban for nftables
|
|
|
|
become: true
|
|
|
|
copy:
|
|
|
|
src: 00-banactions-nft.conf
|
|
|
|
dest: /etc/fail2ban/jail.d/00-banactions-nft.conf
|
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
notify: Restart fail2ban service
|