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.
20 lines
564 B
20 lines
564 B
---
|
|
- name: reset | check dummy0 network device
|
|
stat:
|
|
path: /sys/class/net/dummy0
|
|
register: dummy0
|
|
|
|
- name: reset | remove the network device created by calico
|
|
command: ip link del dummy0
|
|
when: dummy0.stat.exists
|
|
|
|
- name: reset | get remaining routes set by bird
|
|
command: ip route show proto bird
|
|
changed_when: false
|
|
register: bird_routes
|
|
|
|
- name: reset | remove remaining routes set by bird # noqa 301
|
|
command: "ip route del {{ bird_route }} proto bird"
|
|
with_items: "{{ bird_routes.stdout_lines }}"
|
|
loop_control:
|
|
loop_var: bird_route
|