2018-08-16 23:34:33 +08:00
|
|
|
---
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Reset | check cni network device
|
2018-08-16 23:34:33 +08:00
|
|
|
stat:
|
|
|
|
path: /sys/class/net/cni0
|
2021-02-10 21:36:59 +08:00
|
|
|
get_attributes: no
|
|
|
|
get_checksum: no
|
|
|
|
get_mime: no
|
2018-08-16 23:34:33 +08:00
|
|
|
register: cni
|
|
|
|
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Reset | remove the network device created by the flannel
|
2018-08-16 23:34:33 +08:00
|
|
|
command: ip link del cni0
|
|
|
|
when: cni.stat.exists
|
|
|
|
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Reset | check flannel network device
|
2018-08-16 23:34:33 +08:00
|
|
|
stat:
|
|
|
|
path: /sys/class/net/flannel.1
|
2021-02-10 21:36:59 +08:00
|
|
|
get_attributes: no
|
|
|
|
get_checksum: no
|
|
|
|
get_mime: no
|
2018-08-16 23:34:33 +08:00
|
|
|
register: flannel
|
|
|
|
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Reset | remove the network device created by the flannel
|
2018-08-16 23:34:33 +08:00
|
|
|
command: ip link del flannel.1
|
|
|
|
when: flannel.stat.exists
|