omit searchdomain when undefined

This commit is contained in:
Sergey Bubnov (omg) 2019-06-26 16:45:24 +04:00
parent 7913775562
commit aad9337422

View File

@ -50,7 +50,7 @@
# ide: '{ide[2]: "local-lvm:cloudinit"}' # ide: '{ide[2]: "local-lvm:cloudinit"}'
ipconfig0: "ip={{stack.nodes[node_name].net.eth0.ipv4[0]}},gw={{stack.nodes[node_name].net.eth0.default}}" 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]}}" 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 register: vm_status
until: vm_status is succeeded until: vm_status is succeeded
retries: 30 retries: 30