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.
30 lines
835 B
30 lines
835 B
---
|
|
- name: Reset | check vxlan.calico network device
|
|
stat:
|
|
path: /sys/class/net/vxlan.calico
|
|
get_attributes: false
|
|
get_checksum: false
|
|
get_mime: false
|
|
register: vxlan
|
|
|
|
- name: Reset | remove the network vxlan.calico device created by calico
|
|
command: ip link del vxlan.calico
|
|
when: vxlan.stat.exists
|
|
|
|
- name: Reset | check dummy0 network device
|
|
stat:
|
|
path: /sys/class/net/dummy0
|
|
get_attributes: false
|
|
get_checksum: false
|
|
get_mime: false
|
|
register: dummy0
|
|
|
|
- name: Reset | remove the network device created by calico
|
|
command: ip link del dummy0
|
|
when: dummy0.stat.exists
|
|
|
|
- name: Reset | get and remove remaining routes set by bird
|
|
shell: set -o pipefail && ip route show proto bird | xargs -i bash -c "ip route del {} proto bird "
|
|
args:
|
|
executable: /bin/bash
|
|
changed_when: false
|