remove nodelocaldns iface on reset (#4460)
This commit is contained in:
parent
d711a0c83f
commit
09bbdadcee
1 changed files with 11 additions and 0 deletions
|
@ -153,6 +153,17 @@
|
||||||
- kube_proxy_mode == 'ipvs'
|
- kube_proxy_mode == 'ipvs'
|
||||||
- kube_ipvs0.stat.exists
|
- kube_ipvs0.stat.exists
|
||||||
|
|
||||||
|
- name: reset | check nodelocaldns network device
|
||||||
|
stat:
|
||||||
|
path: /sys/class/net/nodelocaldns
|
||||||
|
register: nodelocaldns_device
|
||||||
|
|
||||||
|
- name: reset | Remove nodelocaldns
|
||||||
|
command: "ip link del nodelocaldns"
|
||||||
|
when:
|
||||||
|
- enable_nodelocaldns|default(false)|bool
|
||||||
|
- nodelocaldns_device.stat.exists
|
||||||
|
|
||||||
- name: reset | delete some files and directories
|
- name: reset | delete some files and directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
|
|
Loading…
Reference in a new issue