notification tweak
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
wait_for_connection:
|
wait_for_connection:
|
||||||
delay: 5
|
delay: 5
|
||||||
timeout: 300
|
timeout: 300
|
||||||
|
when: reboot.stat.exists
|
||||||
|
|
||||||
- name: Collect results
|
- name: Collect results
|
||||||
set_fact:
|
set_fact:
|
||||||
@@ -28,6 +29,9 @@
|
|||||||
uri:
|
uri:
|
||||||
url: "{{ Teams_webhook }}"
|
url: "{{ Teams_webhook }}"
|
||||||
method: POST
|
method: POST
|
||||||
body: "{{ results }}"
|
body: |
|
||||||
|
{
|
||||||
|
"text": "{{ results }}"
|
||||||
|
}
|
||||||
body_format: json
|
body_format: json
|
||||||
# when: reboot.stat.exists
|
# when: reboot.stat.exists
|
||||||
Reference in New Issue
Block a user