From c12b1e47a07af2d7a5a57ed774580688b719aa5a Mon Sep 17 00:00:00 2001 From: Danny de Kooker Date: Mon, 17 Jun 2024 08:51:50 +0200 Subject: [PATCH] changes to result collection --- Testing/maint-reboot-required-notify.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Testing/maint-reboot-required-notify.yaml b/Testing/maint-reboot-required-notify.yaml index f6c9d77..cd97299 100644 --- a/Testing/maint-reboot-required-notify.yaml +++ b/Testing/maint-reboot-required-notify.yaml @@ -22,8 +22,8 @@ - name: Collect results set_fact: results: > - {{ 'Reboot required on ' inventory_hostname + 'ith reboot status: ' (reboot.stat.exists | ternary('True', 'False')) }} - + {{ 'Reboot required on ' ~ inventory_hostname ~ ' with reboot status: ' ~ (reboot.stat.exists | ternary('True', 'False')) }} + - name: Send notification to Teams uri: url: "{{ Teams_webhook }}"