Create reset.yml (#8227)

pull/8177/head
khatrig 2021-11-24 23:14:20 +05:30 committed by GitHub
parent 7e1873d927
commit 3ea496013f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 9 deletions

View File

@ -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