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
|
2024-08-28 13:30:56 +08:00
|
|
|
get_attributes: false
|
|
|
|
get_checksum: false
|
|
|
|
get_mime: false
|
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
|
2024-08-28 13:30:56 +08:00
|
|
|
get_attributes: false
|
|
|
|
get_checksum: false
|
|
|
|
get_mime: false
|
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
|