You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 lines
784 B

---
- name: Reset | check kube-dummy-if network device
stat:
path: /sys/class/net/kube-dummy-if
get_attributes: false
get_checksum: false
get_mime: false
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
- name: Check kube-bridge exists
stat:
path: /sys/class/net/kube-bridge
get_attributes: false
get_checksum: false
get_mime: false
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