From f17654a77edb00c042bb4114cb4e6d6f81715a17 Mon Sep 17 00:00:00 2001 From: rubenb Date: Mon, 12 Feb 2024 17:24:01 +0100 Subject: [PATCH] add enable fail2ban service --- roles/config-fail2ban/tasks/main.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/config-fail2ban/tasks/main.yaml b/roles/config-fail2ban/tasks/main.yaml index 862ac60..6fdfc02 100644 --- a/roles/config-fail2ban/tasks/main.yaml +++ b/roles/config-fail2ban/tasks/main.yaml @@ -31,6 +31,11 @@ backup: true notify: restart fail2ban # ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# service fail2ban should start on boot. +- name: service should start on boot + service: + name: "{{ fail2ban_daemon }}" + enabled: yes # service nftables should start on boot. - name: service nftables should start on boot service: