apps-review-cleanup.yml 742 B

12345678910111213141516171819202122232425262728
  1. # Remove the apps-review projects.
  2. - name: Clean up the exercise of apps-review.
  3. hosts: localhost
  4. gather_subset: min
  5. become: no
  6. tasks:
  7. - name: Prereqs
  8. include_role:
  9. name: check-env
  10. - name: Ensure the projects are there
  11. kubernetes.core.k8s:
  12. kubeconfig: tmp/kubeconfig-ocp4
  13. validate_certs: no
  14. api_version: v1
  15. kind: namespace
  16. name: "{{ item.name }}"
  17. state: absent
  18. loop:
  19. - name: apps-selector-conflict
  20. nodeselector: kubernetes.io/hostname=worker03
  21. - name: apps-selector-impossible
  22. - name: apps-lowquota
  23. - name: apps-taint
  24. - name: apps-antiaffinity
  25. #- name: apps-lowlimit
  26. - name: apps-pdb