optimize notification
This commit is contained in:
@@ -36,7 +36,7 @@
|
|||||||
{% for host in ansible_play_hosts_all %}
|
{% for host in ansible_play_hosts_all %}
|
||||||
{
|
{
|
||||||
"name": "{{ host }}",
|
"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 %}
|
}{% if not loop.last %},{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user