From b54ca0a882001c0abdec211f66b466823f8c1f76 Mon Sep 17 00:00:00 2001 From: Martin Michalec Date: Thu, 22 Oct 2026 23:08:30 +0300 Subject: feat: add fail2ban --- roles/fail2ban/tasks/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 roles/fail2ban/tasks/main.yml (limited to 'roles') diff --git a/roles/fail2ban/tasks/main.yml b/roles/fail2ban/tasks/main.yml new file mode 100644 index 0000000..abd335f --- /dev/null +++ b/roles/fail2ban/tasks/main.yml @@ -0,0 +1,18 @@ +--- +- block: + - name: Install fail2ban and openrc service wrapper + community.general.apk: + name: + - nftables + - fail2ban + - fail2ban-openrc + state: present + + - name: Enable and start fail2ban service + ansible.builtin.service: + name: fail2ban + enabled: true + state: started + + tags: + - fail2ban -- cgit v1.3.1