Commit 466cd877 authored by Pietsch, Martin's avatar Pietsch, Martin

bugfix: change nameserver to nameservers

parent 4b593716
......@@ -162,8 +162,8 @@
- name: configure DNS name server
lineinfile:
path: /etc/resolv.conf.new
line: "{{ 'nameserver %s %s' | format(item.value.dns.nameserver.ipv4 | default(''), item.value.dns.nameserver.ipv6 | default('')) }}"
when: ((item.value.dns | default({})).nameserver | default({})).ipv4 is defined or ((item.value.dns | default({})).nameserver | default({})).ipv6 is defined
line: "{{ 'nameserver %s %s' | format(item.value.dns.nameservers.ipv4 | default(''), item.value.dns.nameservers.ipv6 | default('')) }}"
when: ((item.value.dns | default({})).nameservers | default({})).ipv4 is defined or ((item.value.dns | default({})).nameservers | default({})).ipv6 is defined
with_dict: "{{ network.classes }}"
- name: publish new DNS configuration
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment