c12s-kubespray/roles/network_plugin/kube-router/tasks/reset.yml

10 lines
265 B
YAML
Raw Normal View History

---
- name: reset | check kube-dummy-if network device
stat:
path: /sys/class/net/kube-dummy-if
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