2015-10-03 20:19:50 +00:00
|
|
|
; generated by ansible
|
|
|
|
search {{ [ 'default.svc.' + dns_domain, 'svc.' + dns_domain, dns_domain ] | join(' ') }}
|
2015-12-11 10:48:43 +00:00
|
|
|
{% if inventory_hostname in groups['kube-master'] %}
|
|
|
|
nameserver {{ ansible_default_ipv4.address }}
|
|
|
|
{% else %}
|
2015-10-03 20:19:50 +00:00
|
|
|
{% for host in groups['kube-master'] %}
|
|
|
|
nameserver {{ hostvars[host]['ansible_default_ipv4']['address'] }}
|
|
|
|
{% endfor %}
|
2015-12-11 10:48:43 +00:00
|
|
|
{% endif %}
|