2
0
This commit is contained in:
2024-06-08 14:47:58 +02:00
parent dd1a694368
commit f4a67f0808

View File

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