mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-17 00:47:32 -02:30
support removing options in resolvconf with tab separator (#9304)
This commit is contained in:
@@ -29,7 +29,7 @@
|
|||||||
backup: "{{ not resolvconf_stat.stat.islnk }}"
|
backup: "{{ not resolvconf_stat.stat.islnk }}"
|
||||||
with_nested:
|
with_nested:
|
||||||
- "{{ [resolvconffile, base|default(''), head|default('')] | difference(['']) }}"
|
- "{{ [resolvconffile, base|default(''), head|default('')] | difference(['']) }}"
|
||||||
- [ 'search ', 'nameserver ', 'domain ', 'options ' ]
|
- [ 'search\s', 'nameserver\s', 'domain\s', 'options\s' ]
|
||||||
notify: Preinstall | propagate resolvconf to k8s components
|
notify: Preinstall | propagate resolvconf to k8s components
|
||||||
|
|
||||||
- name: Remove search/domain/nameserver options after block
|
- name: Remove search/domain/nameserver options after block
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
backup: "{{ not resolvconf_stat.stat.islnk }}"
|
backup: "{{ not resolvconf_stat.stat.islnk }}"
|
||||||
with_nested:
|
with_nested:
|
||||||
- "{{ [resolvconffile, base|default(''), head|default('')] | difference(['']) }}"
|
- "{{ [resolvconffile, base|default(''), head|default('')] | difference(['']) }}"
|
||||||
- [ 'search ', 'nameserver ', 'domain ', 'options ' ]
|
- [ 'search\s', 'nameserver\s', 'domain\s', 'options\s' ]
|
||||||
notify: Preinstall | propagate resolvconf to k8s components
|
notify: Preinstall | propagate resolvconf to k8s components
|
||||||
|
|
||||||
- name: get temporary resolveconf cloud init file content
|
- name: get temporary resolveconf cloud init file content
|
||||||
|
|||||||
Reference in New Issue
Block a user