uninstall.yml 588 B

12345678910111213141516171819202122
  1. ---
  2. - name: Start removing all the objects
  3. command: "oc delete -n {{ openshift_management_project }} {{ item }} --all"
  4. with_items:
  5. - rc
  6. - dc
  7. - po
  8. - svc
  9. - pvc
  10. - statefulsets
  11. - routes
  12. - name: Remove the project
  13. command: "oc delete -n {{ openshift_management_project }} project {{ openshift_management_project }}"
  14. - name: Verify project has been destroyed
  15. command: "oc get project {{ openshift_management_project }}"
  16. ignore_errors: True
  17. register: project_terminated
  18. until: project_terminated.stderr.find("NotFound") != -1
  19. delay: 5
  20. retries: 30