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