From d90144d2190009f8bd121cb8f773a9209500f034 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 1 Jan 2022 20:19:56 +0100 Subject: in-place variable cooking --- common/vm-install.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/vm-install.yml') diff --git a/common/vm-install.yml b/common/vm-install.yml index 6c98ae73..90b08c56 100644 --- a/common/vm-install.yml +++ b/common/vm-install.yml @@ -11,9 +11,9 @@ - name: check if the host system belongs to the kvmhosts group fail: - msg: "the host '{{ vm_host_cooked.name }}' does not belong to the group 'kvmhosts'" + msg: "the host '{{ vm_host.name }}' does not belong to the group 'kvmhosts'" when: - - "'kvmhosts' not in hostvars[vm_host_cooked.name].group_names" + - "'kvmhosts' not in hostvars[vm_host.name].group_names" # TODO: add some more sanity checks -- cgit v1.2.3