diff --git a/roles/pve/tasks/create_vm.yml b/roles/pve/tasks/create_vm.yml index a850f63..c646968 100644 --- a/roles/pve/tasks/create_vm.yml +++ b/roles/pve/tasks/create_vm.yml @@ -49,8 +49,8 @@ state: present # 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] | default(omit)}}" - searchdomain: "{{stack.nodes[node_name].net.eth0.search[0] | default(omit)}}" + nameserver: "{{stack.nodes[node_name].net.eth0.nameservers | default(omit) | first}}" + searchdomain: "{{stack.nodes[node_name].net.eth0.search | default(omit) | first}}" register: vm_status until: vm_status is succeeded retries: 30