17 lines
610 B
Django/Jinja
17 lines
610 B
Django/Jinja
# templates/resolv.conf.j2
|
|
# Managed by Ansible - DO NOT EDIT MANUALLY
|
|
# Changes will be overwritten on next Ansible run
|
|
|
|
{% if resolv_conf.nameservers is defined and resolv_conf.nameservers | length > 0 %}
|
|
{% for ns in resolv_conf.nameservers %}
|
|
nameserver {{ ns }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if resolv_conf.search_domains is defined and resolv_conf.search_domains | length > 0 %}
|
|
search {{ resolv_conf.search_domains | join(' ') }}
|
|
{% endif %}
|
|
|
|
{% if resolv_conf.resolver_options is defined and resolv_conf.resolver_options | length > 0 %}
|
|
options {{ resolv_conf.resolver_options | join(' ') }}
|
|
{% endif %} |