Add resolv.conf customization

This commit is contained in:
2021-10-11 14:41:29 -04:00
parent 5e83f1826e
commit 739c60fce0
3 changed files with 19 additions and 2 deletions

View File

@ -2,6 +2,10 @@
# {{ 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
nameserver 8.8.8.8
nameserver 8.8.4.4
{% for server in recursive_dns_servers %}
nameserver {{ server }}
{% endfor %}