1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_resolvconf.git synced 2024-07-06 18:08:52 +02:00

Update resolv.conf.j2

This commit is contained in:
L3D 2021-03-08 11:31:34 +01:00 committed by GitHub
parent bf8471febc
commit 545e8a9ab1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,9 +7,11 @@
{% if resolvconf__domain is defined and resolvconf__domain != "" -%}
domain {{ resolvconf__domain }}
{% endif %}
{% if resolvconf__nameservers is defined and resolvconf__nameservers != "" %}
{% for n in resolvconf__nameservers -%}
nameserver {{ n }}
{% endfor %}
{% endif %}
{% if resolvconf__sortlist is defined and resolvconf__sortlist | length > 0 %}
{% for s in resolvconf__sortlist -%}
sortlist {{ sl }}