From 7ba0328505f149238430020eefdf33e8cc1edb97 Mon Sep 17 00:00:00 2001 From: rubenb Date: Mon, 23 Oct 2023 09:38:28 +0200 Subject: [PATCH] add sender and modify action --- roles/config-fail2ban/templates/jail.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/config-fail2ban/templates/jail.j2 b/roles/config-fail2ban/templates/jail.j2 index 561913a..3ce7852 100644 --- a/roles/config-fail2ban/templates/jail.j2 +++ b/roles/config-fail2ban/templates/jail.j2 @@ -11,7 +11,8 @@ bantime = {{ bantime }} maxretry = {{ maxretry }} findtime = {{ findtime }} destemail = sysadmin@verdnatura.es -action = %(action_)s +sender = root@{{ ansible_nodename }}.verdnatura.es +action = %(action_mwl)s #+++++++++++++++++++++++++++++++++++++ {% for jail in jails %}