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