2018-12-04 20:37:45 +01:00
|
|
|
---
|
|
|
|
- name: reset | check dummy0 network device
|
|
|
|
stat:
|
|
|
|
path: /sys/class/net/dummy0
|
2021-02-10 08:36:59 -05:00
|
|
|
get_attributes: no
|
|
|
|
get_checksum: no
|
|
|
|
get_mime: no
|
2018-12-04 20:37:45 +01:00
|
|
|
register: dummy0
|
|
|
|
|
|
|
|
- name: reset | remove the network device created by calico
|
|
|
|
command: ip link del dummy0
|
|
|
|
when: dummy0.stat.exists
|
|
|
|
|
2021-11-24 23:14:20 +05:30
|
|
|
- name: reset | get and remove remaining routes set by bird
|
|
|
|
shell: ip route show proto bird | xargs -i bash -c "ip route del {} proto bird "
|
2020-07-28 17:39:47 +02:00
|
|
|
changed_when: false
|