debug notification
This commit is contained in:
1 parent
c12b1e47a0
commit
0b469c5cda
1 file changed
+2
-2
@@ -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