2018-08-16 15:34:33 +00:00
|
|
|
---
|
|
|
|
- name: reset | check cni network device
|
|
|
|
stat:
|
|
|
|
path: /sys/class/net/cni0
|
2021-02-10 13:36:59 +00:00
|
|
|
get_attributes: no
|
|
|
|
get_checksum: no
|
|
|
|
get_mime: no
|
2018-08-16 15:34:33 +00:00
|
|
|
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
|
2021-02-10 13:36:59 +00:00
|
|
|
get_attributes: no
|
|
|
|
get_checksum: no
|
|
|
|
get_mime: no
|
2018-08-16 15:34:33 +00:00
|
|
|
register: flannel
|
|
|
|
|
|
|
|
- name: reset | remove the network device created by the flannel
|
|
|
|
command: ip link del flannel.1
|
|
|
|
when: flannel.stat.exists
|