apps-review-cleanup.yml 749 B

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