pvc-ansible/roles/base/templates/etc/resolv.conf.j2

12 lines
311 B
Django/Jinja

# DNS resolver configuration
# {{ ansible_managed }}
domain {{ local_domain }}
{% if recursive_dns_search_domains is defined %}
search {{ recursive_dns_search_domains | join (' ') }}
{% endif %}
options timeout:1 attempts:3 rotate
{% for server in recursive_dns_servers %}
nameserver {{ server }}
{% endfor %}