From 59a9ef6856a062ef51e6fa55cdca8d43c067143e Mon Sep 17 00:00:00 2001 From: Andrey Kirilochkin Date: Wed, 19 Apr 2023 16:28:32 +0300 Subject: [PATCH] Update networks.yml Right way to lookup custom xml file --- tasks/networks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/networks.yml b/tasks/networks.yml index 5b90382..a0b1482 100644 --- a/tasks/networks.yml +++ b/tasks/networks.yml @@ -3,7 +3,7 @@ virt_net: name: "{{ item.name }}" command: define - xml: "{{ item.xml | default(lookup('template', 'network.xml.j2')) }}" + xml: "{{ lookup('template', item.xml | default('network.xml.j2')) }}" uri: "{{ libvirt_host_uri | default(omit, true) }}" with_items: "{{ libvirt_host_networks }}" become: True