mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-18 01:17:38 -02:30
Reset tasks specific to a network_plugin moved inside its role directory + Reset tasks specific to cilium
This commit is contained in:
18
roles/network_plugin/flannel/tasks/reset.yml
Normal file
18
roles/network_plugin/flannel/tasks/reset.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
- name: reset | check cni network device
|
||||
stat:
|
||||
path: /sys/class/net/cni0
|
||||
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
|
||||
register: flannel
|
||||
|
||||
- name: reset | remove the network device created by the flannel
|
||||
command: ip link del flannel.1
|
||||
when: flannel.stat.exists
|
||||
Reference in New Issue
Block a user