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.

24 lines
575 B

  1. ---
  2. - name: reset | check cni network device
  3. stat:
  4. path: /sys/class/net/cni0
  5. get_attributes: no
  6. get_checksum: no
  7. get_mime: no
  8. register: cni
  9. - name: reset | remove the network device created by the flannel
  10. command: ip link del cni0
  11. when: cni.stat.exists
  12. - name: reset | check flannel network device
  13. stat:
  14. path: /sys/class/net/flannel.1
  15. get_attributes: no
  16. get_checksum: no
  17. get_mime: no
  18. register: flannel
  19. - name: reset | remove the network device created by the flannel
  20. command: ip link del flannel.1
  21. when: flannel.stat.exists