mirror of
https://github.com/roles-ansible/ansible_role_resolvconf.git
synced 2024-08-16 10:09:52 +02:00
Update resolv.conf.j2
This commit is contained in:
parent
bf8471febc
commit
545e8a9ab1
1 changed files with 2 additions and 0 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue