ansible/roles/resolvconf/templates/resolv.conf.j2

12 lines
309 B
Text
Raw Permalink Normal View History

2022-08-26 19:11:40 +02:00
{{ ansible_managed | comment }}
{% for nameserver in resolvconf__nameservers %}
nameserver {{ nameserver | ipaddr }}
{% endfor %}
{% if resolvconf__domain is defined %}
domain {{ resolvconf__domain }}
{% endif %}
{% if resolvconf__search is defined %}
search {{ resolvconf__search | join(" ") }}
{% endif %}