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
453 B

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