This commit is contained in:
Jack Ivanov 2018-03-27 18:53:59 +00:00 committed by GitHub
commit 5957b38cfe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -88,7 +88,7 @@ no-resolv
# You can control how dnsmasq talks to a server: this forces
# queries to 10.1.2.3 to be routed via eth1
# server=10.1.2.3@eth1
{% for host in dns_servers.ipv4 %}
{% for host in ansible_dns['nameservers']|default(dns_servers['ipv4']) %}
server={{ host }}
{% endfor %}

View file

@ -31,7 +31,7 @@ conn %default
{% if local_dns is defined and local_dns == "Y" %}
rightdns={{ local_service_ip }}
{% else %}
rightdns={% for host in dns_servers.ipv4 %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}{% if ipv6_support is defined and ipv6_support == "yes" %},{% for host in dns_servers.ipv6 %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}
rightdns={% for host in ansible_dns['nameservers']|default(dns_servers['ipv4']) %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}
{% endif %}
conn ikev2-pubkey