From aad9337422f228d45d4c7714ded2d5f5c33123ca Mon Sep 17 00:00:00 2001 From: "Sergey Bubnov (omg)" Date: Wed, 26 Jun 2019 16:45:24 +0400 Subject: [PATCH] omit searchdomain when undefined --- roles/pve/tasks/create_vm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/pve/tasks/create_vm.yml b/roles/pve/tasks/create_vm.yml index 5ebe424..c0f2f99 100644 --- a/roles/pve/tasks/create_vm.yml +++ b/roles/pve/tasks/create_vm.yml @@ -50,7 +50,7 @@ # ide: '{ide[2]: "local-lvm:cloudinit"}' ipconfig0: "ip={{stack.nodes[node_name].net.eth0.ipv4[0]}},gw={{stack.nodes[node_name].net.eth0.default}}" nameserver: "{{stack.nodes[node_name].net.eth0.nameservers[0]}}" - searchdomain: "{{stack.nodes[node_name].net.eth0.search[0]}}" + searchdomain: "{{stack.nodes[node_name].net.eth0.search[0] | default(omit)}}" register: vm_status until: vm_status is succeeded retries: 30