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.

19 lines
530 B

  1. ---
  2. - name: reset | check dummy0 network device
  3. stat:
  4. path: /sys/class/net/dummy0
  5. register: dummy0
  6. - name: reset | remove the network device created by calico
  7. command: ip link del dummy0
  8. when: dummy0.stat.exists
  9. - name: reset | get remaining routes set by bird
  10. command: ip route show proto bird
  11. register: bird_routes
  12. - name: reset | remove remaining routes set by bird
  13. command: "ip route del {{ bird_route }} proto bird"
  14. with_items: "{{ bird_routes.stdout_lines }}"
  15. loop_control:
  16. loop_var: bird_route