From f00fdbe80883cc6e5d90d572ffe2a8c55de221bf Mon Sep 17 00:00:00 2001 From: Sven Ketelsen Date: Sat, 18 Jun 2022 08:35:22 +0200 Subject: [PATCH] bugfix: fixed when expression (regression from DEV-492) --- roles/common/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index 6147273..2262dc0 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -24,7 +24,7 @@ {{ host.ip }} {{ host.name }} {% endfor %} when: - - inventory_hostname in groups['hcloud'] + - "'hcloud' not in group_names" tags: - update_etc_hosts