debug notification
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user