Reset: Check for kube-ipvs0 presence before remove it (#3816)
parent
2c1dd69891
commit
0d1be39a97
|
@ -112,10 +112,16 @@
|
|||
when:
|
||||
- kube_proxy_mode == 'ipvs'
|
||||
|
||||
- name: reset | check kube-ipvs0 network device
|
||||
stat:
|
||||
path: /sys/class/net/kube-ipvs0
|
||||
register: kube_ipvs0
|
||||
|
||||
- name: reset | Remove kube-ipvs0
|
||||
command: "ip link del kube-ipvs0"
|
||||
when:
|
||||
- kube_proxy_mode == 'ipvs'
|
||||
- kube_ipvs0.stat.exists
|
||||
|
||||
- name: reset | delete some files and directories
|
||||
file:
|
||||
|
|
Loading…
Reference in New Issue