fix default(omit) behaviour

This commit is contained in:
Sergey Bubnov (omg) 2019-06-26 17:54:02 +04:00
parent 2fa7099cbb
commit d5bf5d23f8

View File

@ -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