From c8469d17e6b68e8834fe4254c03bf5b5a0f1ff28 Mon Sep 17 00:00:00 2001 From: Christian Steinle Date: Tue, 19 Jul 2022 09:25:36 +0200 Subject: [PATCH] Test sending message with bot user. --- nas.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/nas.yaml b/nas.yaml index 66a60a0..a1d4013 100644 --- a/nas.yaml +++ b/nas.yaml @@ -59,12 +59,16 @@ - name: Inform Mattermost about success uri: - url: "{{ mattermost_url }}" + url: https://cs-mm.ddnss.de/api/v4/posts method: POST body_format: json body: - username: "{{ mattermost_user }}" + channel_id: gub5buudpffxjf6fc1abkas8jo text: "{{ ansible_date_time.date }} {{ ansible_date_time.time }} (info): Playbook ran successful ({{ ansible_play_name }})" + headers: + Content-Type: application/json + Authorization: Bearer 6ej3xr7cuinyfrzkbn64i85zco + rescue: - name: Umount nas volume