mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 16:28:45 -03:30
fix quotations in dhclient hooks (#11946)
This commit is contained in:
@@ -4,7 +4,11 @@
|
|||||||
# 1 is the 2nd item of a tuple in items()
|
# 1 is the 2nd item of a tuple in items()
|
||||||
block: |-
|
block: |-
|
||||||
{% for key, val in dhclient_supersede.items() | rejectattr(1, '==', []) -%}
|
{% for key, val in dhclient_supersede.items() | rejectattr(1, '==', []) -%}
|
||||||
|
{% if key == "domain-name-servers" -%}
|
||||||
supersede {{ key }} {{ val | join(',') }};
|
supersede {{ key }} {{ val | join(',') }};
|
||||||
|
{% else -%}
|
||||||
|
supersede {{ key }} "{{ val | join('","') }}";
|
||||||
|
{% endif -%}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
path: "{{ dhclientconffile }}"
|
path: "{{ dhclientconffile }}"
|
||||||
create: true
|
create: true
|
||||||
|
|||||||
Reference in New Issue
Block a user