123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- ---
- - name: remove ansible-service-broker serviceaccount
- oc_serviceaccount:
- name: asb
- namespace: openshift-ansible-service-broker
- state: absent
- - name: remove ansible-service-broker client serviceaccount
- oc_serviceaccount:
- name: asb-client
- namespace: openshift-ansible-service-broker
- state: absent
- - name: remove asb-auth cluster role
- oc_clusterrole:
- state: absent
- name: asb-auth
- - name: remove asb-access cluster role
- oc_clusterrole:
- state: absent
- name: asb-access
- - name: Unbind admin cluster-role to asb serviceaccount
- oc_adm_policy_user:
- state: absent
- namespace: openshift-ansible-service-broker
- resource_kind: cluster-role
- resource_name: admin
- user: "system:serviceaccount:openshift-ansible-service-broker:asb"
- - name: Unbind auth cluster role to asb service account
- oc_adm_policy_user:
- state: absent
- namespace: openshift-ansible-service-broker
- resource_kind: cluster-role
- resource_name: asb-auth
- user: "system:serviceaccount:openshift-ansible-service-broker:asb"
- - name: Unbind asb-access role to asb-client service account
- oc_adm_policy_user:
- state: absent
- namespace: openshift-ansible-service-broker
- resource_kind: cluster-role
- resource_name: asb-access
- user: "system:serviceaccount:openshift-ansible-service-broker:asb-client"
- - name: remove asb-client token secret
- oc_secret:
- state: absent
- name: asb-client
- namespace: openshift-ansible-service-broker
- - name: remove ansible-service-broker service
- oc_service:
- name: asb
- namespace: openshift-ansible-service-broker
- state: absent
- - name: remove etcd service
- oc_service:
- name: etcd
- namespace: openshift-ansible-service-broker
- state: absent
- - name: remove route for ansible-service-broker service
- oc_route:
- name: asb-1338
- namespace: openshift-ansible-service-broker
- state: absent
- - name: remove persistent volume claim for etcd
- oc_pvc:
- name: etcd
- namespace: openshift-ansible-service-broker
- state: absent
- - name: remove Ansible Service Broker deployment config
- oc_obj:
- name: asb
- namespace: openshift-ansible-service-broker
- kind: DeploymentConfig
- state: absent
- - name: remove secret for broker auth
- oc_obj:
- name: asb-auth-secret
- namespace: openshift-ansible-service-broker
- kind: Broker
- state: absent
- # TODO: saw a oc_configmap in the library, but didn't understand how to get it to do the following:
- - name: remove config map for ansible-service-broker
- oc_obj:
- name: broker-config
- namespace: openshift-ansible-service-broker
- state: absent
- kind: ConfigMap
- # TODO: Is this going to work?
- - name: remove broker object from the catalog
- oc_obj:
- name: ansible-service-broker
- state: absent
- kind: ServiceBroker
- - name: remove openshift-ansible-service-broker project
- oc_project:
- name: openshift-ansible-service-broker
- state: absent
|