Files
dsk-iac/kubespray/roles/network_plugin/flannel/tasks/reset.yml
havelight-ee 4c32a7239d update
2023-05-30 14:44:26 +09:00

25 lines
575 B
YAML

---
- name: reset | check cni network device
stat:
path: /sys/class/net/cni0
get_attributes: no
get_checksum: no
get_mime: no
register: cni
- name: reset | remove the network device created by the flannel
command: ip link del cni0
when: cni.stat.exists
- name: reset | check flannel network device
stat:
path: /sys/class/net/flannel.1
get_attributes: no
get_checksum: no
get_mime: no
register: flannel
- name: reset | remove the network device created by the flannel
command: ip link del flannel.1
when: flannel.stat.exists