From 3b66befce060c18790e2c0c2374da773844f88d5 Mon Sep 17 00:00:00 2001 From: Danny de Kooker Date: Mon, 17 Jun 2024 08:57:35 +0200 Subject: [PATCH] notification tweak --- Testing/maint-reboot-required-notify.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Testing/maint-reboot-required-notify.yaml b/Testing/maint-reboot-required-notify.yaml index 1b7dd11..5c3d713 100644 --- a/Testing/maint-reboot-required-notify.yaml +++ b/Testing/maint-reboot-required-notify.yaml @@ -18,6 +18,7 @@ wait_for_connection: delay: 5 timeout: 300 + when: reboot.stat.exists - name: Collect results set_fact: @@ -28,6 +29,9 @@ uri: url: "{{ Teams_webhook }}" method: POST - body: "{{ results }}" + body: | + { + "text": "{{ results }}" + } body_format: json # when: reboot.stat.exists \ No newline at end of file