From b0f743cccc091ec48af6129a3dae32466e58f553 Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Wed, 29 Jun 2022 07:58:36 +0200 Subject: [PATCH] Fixed wiki index if host is unreachable --- templates/start.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/start.j2 b/templates/start.j2 index 0c6d98a..c9414f0 100644 --- a/templates/start.j2 +++ b/templates/start.j2 @@ -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 %}