2018-10-16 14:15:05 +00:00
|
|
|
---
|
|
|
|
- name: reset | check kube-dummy-if network device
|
|
|
|
stat:
|
|
|
|
path: /sys/class/net/kube-dummy-if
|
2021-02-10 13:36:59 +00:00
|
|
|
get_attributes: no
|
|
|
|
get_checksum: no
|
|
|
|
get_mime: no
|
2018-10-16 14:15:05 +00:00
|
|
|
register: kube_dummy_if
|
|
|
|
|
|
|
|
- name: reset | remove the network device created by kube-router
|
|
|
|
command: ip link del kube-dummy-if
|
|
|
|
when: kube_dummy_if.stat.exists
|
2019-02-26 08:32:00 +00:00
|
|
|
|
|
|
|
- name: check kube-bridge exists
|
|
|
|
stat:
|
|
|
|
path: /sys/class/net/kube-bridge
|
2021-02-10 13:36:59 +00:00
|
|
|
get_attributes: no
|
|
|
|
get_checksum: no
|
|
|
|
get_mime: no
|
2019-02-26 08:32:00 +00:00
|
|
|
register: kube_bridge_if
|
|
|
|
|
|
|
|
- name: reset | donw the network bridge create by kube-router
|
|
|
|
command: ip link set kube-bridge down
|
|
|
|
when: kube_bridge_if.stat.exists
|
|
|
|
|
|
|
|
- name: reset | remove the network bridge create by kube-router
|
|
|
|
command: ip link del kube-bridge
|
|
|
|
when: kube_bridge_if.stat.exists
|