debug notification
This commit is contained in:
@@ -23,11 +23,11 @@
|
|||||||
set_fact:
|
set_fact:
|
||||||
results: >
|
results: >
|
||||||
{{ 'Reboot required on ' ~ inventory_hostname ~ ' with 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
|
- name: Send notification to Teams
|
||||||
uri:
|
uri:
|
||||||
url: "{{ Teams_webhook }}"
|
url: "{{ Teams_webhook }}"
|
||||||
method: POST
|
method: POST
|
||||||
body: "{{ results }}"
|
body: "{{ results }}"
|
||||||
body_format: json
|
body_format: json
|
||||||
when: reboot.stat.exists
|
# when: reboot.stat.exists
|
||||||
Reference in New Issue
Block a user