k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
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.
24 lines
575 B
24 lines
575 B
---
|
|
- 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
|