From bb1bd13d41b74ac701d4e6cbc614494a957632c3 Mon Sep 17 00:00:00 2001 From: Stephane M Date: Tue, 18 Feb 2025 22:37:46 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20'fail2ban.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ansible/playbooks/fail2ban.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/playbooks/fail2ban.yml b/ansible/playbooks/fail2ban.yml index 15c8b1bea..c4de64919 100644 --- a/ansible/playbooks/fail2ban.yml +++ b/ansible/playbooks/fail2ban.yml @@ -47,7 +47,7 @@ [Definition] actionstart = actionstop = - actionban = curl -X POST -H "Content-Type: application/json" --data "{"text": "🚨 Fail2ban a banni après trop d'échecs SSH 🚨"}" {{ mattermost_webhook }} + actionban = curl -X POST -H "Content-Type: application/json" --data "{\"text\": \"🚨 *$(hostname)* : **Fail2ban** a banni l'IP **** après trop d'échecs SSH 🚨\"}" {{ mattermost_webhook }} actionunban = notify: Restart Fail2ban