k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
268 B
9 lines
268 B
---
|
|
- 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
|