Fixed wiki index if host is unreachable

This commit is contained in:
Sven Velt 2022-06-29 07:58:36 +02:00
parent ea68badfd7
commit b0f743cccc

View file

@ -17,7 +17,7 @@
{% endfor %}
===== Hosts ohne systemd =====
{% for h in hostvars|sort if hostvars[h]['ansible_service_mgr'] != 'systemd' %}
{% for h in hostvars|sort if hostvars[h]['ansible_service_mgr'] is defined and hostvars[h]['ansible_service_mgr'] != 'systemd' %}
* [[ {{ h }} | {{ h }} ({{ hostvars[h]['ansible_service_mgr'] }}) ]]
{% endfor %}