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.

22 lines
644 B

  1. ---
  2. - name: reset | check kube-dummy-if network device
  3. stat:
  4. path: /sys/class/net/kube-dummy-if
  5. register: kube_dummy_if
  6. - name: reset | remove the network device created by kube-router
  7. command: ip link del kube-dummy-if
  8. when: kube_dummy_if.stat.exists
  9. - name: check kube-bridge exists
  10. stat:
  11. path: /sys/class/net/kube-bridge
  12. register: kube_bridge_if
  13. - name: reset | donw the network bridge create by kube-router
  14. command: ip link set kube-bridge down
  15. when: kube_bridge_if.stat.exists
  16. - name: reset | remove the network bridge create by kube-router
  17. command: ip link del kube-bridge
  18. when: kube_bridge_if.stat.exists