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: