Create reset.yml (#8227)
This commit is contained in:
parent
7e1873d927
commit
3ea496013f
1 changed files with 2 additions and 9 deletions
|
@ -11,13 +11,6 @@
|
|||
command: ip link del dummy0
|
||||
when: dummy0.stat.exists
|
||||
|
||||
- name: reset | get remaining routes set by bird
|
||||
command: ip route show proto bird
|
||||
- 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 "
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue