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

14 lines
343 B
Plaintext
Raw Normal View History

2019-03-27 07:05:37 +00:00
# {{ ansible_managed }}
[Resolve]
{% for ns in (network_nameservers | shuffle(seed=inventory_hostname)) %}
DNS={{ ns }}
{% endfor %}
2019-03-27 07:33:30 +00:00
{% if network_search is defined %}
{% if network_search is iterable and network_search is not string %}
Domains={{ network_search | join(' ') }}
{% else %}
Domains={{ network_search }}
{% endif %}
{% endif %}