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

9 lines
249 B
Plaintext
Raw Normal View History

2019-03-27 07:05:37 +00:00
# {{ ansible_managed }}
{% for ns in (network_nameservers | shuffle(seed=inventory_hostname))[:3] %}
nameserver {{ ns }}
{% endfor %}
{% if network_resolv_conf_options is defined %}
options {{ network_resolv_conf_options | join(' ') }}
{% endif %}