From 41a065b0482c5ecb27456b74c2f3a3d4b6a5e72f Mon Sep 17 00:00:00 2001 From: Sven Ketelsen Date: Sun, 19 Jun 2022 09:36:34 +0200 Subject: [PATCH] bugfix: regression for etc/hosts update - shouldn't run for non hcloud servers at all when expression was wrongly negated --- 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 2262dc0..9e8bf2c 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -24,7 +24,7 @@ {{ host.ip }} {{ host.name }} {% endfor %} when: - - "'hcloud' not in group_names" + - "'hcloud' in group_names" tags: - update_etc_hosts