|
@@ -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:
|