From 0b1e7bb022fea84e153f461d128b4adc3ae214d0 Mon Sep 17 00:00:00 2001 From: Stephane Armanet <stephanearmanet@esss.lu.se> Date: Tue, 26 Feb 2019 08:58:36 +0100 Subject: [PATCH] use a var to taget host link creation --- tasks/get_mac.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/get_mac.yml b/tasks/get_mac.yml index d9f173d..b2c661d 100644 --- a/tasks/get_mac.yml +++ b/tasks/get_mac.yml @@ -7,7 +7,7 @@ force: true follow: false when: (hostvars[item].csentry_interfaces[0].mac|string) != "None" - with_items: "{{ groups['{{ autoinstall_scope }}'] }}" + with_items: "{{ groups[(autoinstall_scope |string)] }}" tags: create_link - name: create link for Mac Addr for GRUB EFI @@ -18,5 +18,5 @@ force: false follow: false when: (hostvars[item].csentry_interfaces[0].mac|string) != "None" - with_items: "{{ groups['{{ autoinstall_scope }}'] }}" + with_items: "{{ groups[(autoinstall_scope |string)] }}" tags: create_link -- GitLab