10 lines
355 B
Django/Jinja
10 lines
355 B
Django/Jinja
; generated by ansible
|
|
search {{ [ 'default.svc.' + dns_domain, 'svc.' + dns_domain, dns_domain ] | join(' ') }}
|
|
{% if inventory_hostname in groups['kube-master'] %}
|
|
nameserver {{ ansible_default_ipv4.address }}
|
|
{% else %}
|
|
{% for host in groups['kube-master'] %}
|
|
nameserver {{ hostvars[host]['ansible_default_ipv4']['address'] }}
|
|
{% endfor %}
|
|
{% endif %}
|