2
0

debug notification

This commit is contained in:
2024-06-17 08:55:31 +02:00
parent c12b1e47a0
commit 0b469c5cda

View File

@@ -23,11 +23,11 @@
set_fact:
results: >
{{ 'Reboot required on ' ~ inventory_hostname ~ ' with reboot status: ' ~ (reboot.stat.exists | ternary('True', 'False')) }}
- name: Send notification to Teams
uri:
url: "{{ Teams_webhook }}"
method: POST
body: "{{ results }}"
body_format: json
when: reboot.stat.exists
# when: reboot.stat.exists