diff --git a/Maintenance/maint-reboot-required.yaml b/Maintenance/maint-reboot-required.yaml index 497467d..436de86 100644 --- a/Maintenance/maint-reboot-required.yaml +++ b/Maintenance/maint-reboot-required.yaml @@ -36,7 +36,7 @@ {% for host in ansible_play_hosts_all %} { "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 %} {% endfor %} ]