summaryrefslogtreecommitdiffstats
path: root/roles/ansible_service_broker
diff options
context:
space:
mode:
authorstaebler <staebler@redhat.com>2017-10-18 22:38:33 -0400
committerstaebler <staebler@redhat.com>2017-10-22 14:31:04 -0400
commit1f9546df88b0ade2f5af1577e62833d5a4ce1976 (patch)
treec10e6a5b9a6e8708a9a69c132704f9096eccb373 /roles/ansible_service_broker
parentdfe27c1ffdd9f9590552c5b274a2d09de5d0e377 (diff)
downloadopenshift-1f9546df88b0ade2f5af1577e62833d5a4ce1976.tar.gz
openshift-1f9546df88b0ade2f5af1577e62833d5a4ce1976.tar.bz2
openshift-1f9546df88b0ade2f5af1577e62833d5a4ce1976.tar.xz
openshift-1f9546df88b0ade2f5af1577e62833d5a4ce1976.zip
Fix a few small issues in service catalog uninstall
Diffstat (limited to 'roles/ansible_service_broker')
-rw-r--r--roles/ansible_service_broker/tasks/remove.yml12
1 files changed, 9 insertions, 3 deletions
diff --git a/roles/ansible_service_broker/tasks/remove.yml b/roles/ansible_service_broker/tasks/remove.yml
index f0a6be226..51b86fb26 100644
--- a/roles/ansible_service_broker/tasks/remove.yml
+++ b/roles/ansible_service_broker/tasks/remove.yml
@@ -85,9 +85,9 @@
- name: remove secret for broker auth
oc_obj:
- name: asb-auth-secret
+ name: asb-client
namespace: openshift-ansible-service-broker
- kind: Broker
+ kind: Secret
state: absent
# TODO: saw a oc_configmap in the library, but didn't understand how to get it to do the following:
@@ -99,11 +99,17 @@
kind: ConfigMap
# TODO: Is this going to work?
+- shell: >
+ oc get apiservices.apiregistration.k8s.io/v1beta1.servicecatalog.k8s.io -n kube-service-catalog || echo "not found"
+ register: get_apiservices
+ changed_when: no
+
- name: remove broker object from the catalog
oc_obj:
name: ansible-service-broker
state: absent
- kind: ServiceBroker
+ kind: ClusterServiceBroker
+ when: not "'not found' in get_apiservices.stdout"
- name: remove openshift-ansible-service-broker project
oc_project: