2
0

optimize notification

This commit is contained in:
2024-06-08 14:44:51 +02:00
parent 9051e0c541
commit dd1a694368

View File

@@ -36,7 +36,7 @@
{% for host in ansible_play_hosts_all %}
{
"name": "{{ host }}",
"value": "{% if host in reboot_results | select('stat.exists') | map('ansible_host') %}&#U+2705 Rebooted{% else %}Not Rebooted{% endif %}"
"value": "{% if hostvars[host]['reboot']['stat']['exists'] %}&#U+2705 Rebooted{% else %}Not Rebooted{% endif %}"
}{% if not loop.last %},{% endif %}
{% endfor %}
]