Skip to content

Commit

Permalink
Update resolve template
Browse files Browse the repository at this point in the history
  • Loading branch information
DO1JLR committed Sep 11, 2024
1 parent 4366f45 commit 90a334a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions templates/resolv.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
# do1jlr.resolvconf

{% if resolvconf__search is defined and resolvconf__search | length > 0 %}
search {{ resolvconf__search | join(' ') }}
search {{ resolvconf__search | join(' ') }}
{% endif %}
{% if resolvconf__domain is defined and resolvconf__domain != "" %}
domain {{ resolvconf__domain }}
domain {{ resolvconf__domain }}
{% endif %}
{% if resolvconf__nameservers is defined and resolvconf__nameservers != "" %}
{% for nsvr in resolvconf__nameservers %}
nameserver {{ nsvr }}
nameserver {{ nsvr }}
{% endfor %}
{% endif %}
{% if resolvconf__sortlist is defined and resolvconf__sortlist | length > 0 %}
{% for s in resolvconf__sortlist %}
sortlist {{ sl }}
sortlist {{ s }}
{% endfor %}
{% endif %}
{% if resolvconf__options is defined and resolvconf__options | length > 0 %}
options {{ resolvconf__options | join(' ') }}
options {{ resolvconf__options | join(' ') }}
{% endif %}
2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
# versionscheck
playbook_version_number: 9 # should be a integer
playbook_version_number: 10 # should be a integer
playbook_version_path: 'do1jlr.resolvconf.version'

0 comments on commit 90a334a

Please sign in to comment.