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.

18 lines
505 B

  1. ---
  2. - name: reset | check dummy0 network device
  3. stat:
  4. path: /sys/class/net/dummy0
  5. get_attributes: no
  6. get_checksum: no
  7. get_mime: no
  8. register: dummy0
  9. - name: reset | remove the network device created by calico
  10. command: ip link del dummy0
  11. when: dummy0.stat.exists
  12. - name: reset | get and remove remaining routes set by bird
  13. shell: set -o pipefail && ip route show proto bird | xargs -i bash -c "ip route del {} proto bird "
  14. args:
  15. executable: /bin/bash
  16. changed_when: false