mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-07 02:27:43 +03:00
Reset tasks specific to a network_plugin moved inside its role directory + Reset tasks specific to cilium
This commit is contained in:
9
roles/network_plugin/cilium/tasks/reset_iface.yml
Normal file
9
roles/network_plugin/cilium/tasks/reset_iface.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: "reset | check if network device {{ iface }} is present"
|
||||
stat:
|
||||
path: "/sys/class/net/{{ iface }}"
|
||||
register: device_remains
|
||||
|
||||
- name: "reset | remove network device {{ iface }}"
|
||||
command: "ip link del {{ iface }}"
|
||||
when: device_remains.stat.exists
|
||||
Reference in New Issue
Block a user