2
0

facts changed in teams notification

This commit is contained in:
2024-06-08 14:53:10 +02:00
parent 27e16d1ca3
commit c9caaa6a67

View File

@@ -36,7 +36,7 @@
{% for host in ansible_play_hosts_all %} {% for host in ansible_play_hosts_all %}
{ {
"name": "{{ host }}", "name": "{{ host }}",
"value": "{% if rebootrego['reboot'] is defined and rebootrego['reboot'].stat.exists %}&#U+2705 Rebooted{% else %}Not Rebooted{% endif %}" "value": "{% if hostvars[host]['reboot'] is defined and hostvars[host]['reboot'].stat.exists %}&#U+2705 Rebooted{% else %}Not Rebooted{% endif %}"
}{% if not loop.last %},{% endif %} }{% if not loop.last %},{% endif %}
{% endfor %} {% endfor %}
] ]