Jan Breitkopf
4 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
0 deletions
-
roles/kubernetes/preinstall/tasks/0100-dhclient-hooks.yml
|
|
@ -4,7 +4,11 @@ |
|
|
|
# 1 is the 2nd item of a tuple in items() |
|
|
|
block: |- |
|
|
|
{% for key, val in dhclient_supersede.items() | rejectattr(1, '==', []) -%} |
|
|
|
{% if key == "domain-name-servers" -%} |
|
|
|
supersede {{ key }} {{ val | join(',') }}; |
|
|
|
{% else -%} |
|
|
|
supersede {{ key }} "{{ val | join('","') }}"; |
|
|
|
{% endif -%} |
|
|
|
{% endfor %} |
|
|
|
path: "{{ dhclientconffile }}" |
|
|
|
create: true |
|
|
|