remove.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. ---
  2. - name: remove openshift-ansible-service-broker project
  3. oc_project:
  4. name: openshift-ansible-service-broker
  5. state: absent
  6. - name: remove ansible-service-broker serviceaccount
  7. oc_serviceaccount:
  8. name: asb
  9. namespace: openshift-ansible-service-broker
  10. state: absent
  11. - name: remove ansible-service-broker service
  12. oc_service:
  13. name: asb
  14. namespace: openshift-ansible-service-broker
  15. state: absent
  16. - name: remove etcd service
  17. oc_service:
  18. name: etcd
  19. namespace: openshift-ansible-service-broker
  20. state: absent
  21. - name: remove route for ansible-service-broker service
  22. oc_route:
  23. name: asb-1338
  24. namespace: openshift-ansible-service-broker
  25. state: absent
  26. - name: remove persistent volume claim for etcd
  27. oc_pvc:
  28. name: etcd
  29. namespace: openshift-ansible-service-broker
  30. state: absent
  31. - name: remove etcd deployment
  32. oc_obj:
  33. name: etcd
  34. namespace: openshift-ansible-service-broker
  35. state: absent
  36. kind: Deployment
  37. - name: remove ansible-service-broker deployment
  38. oc_obj:
  39. name: asb
  40. namespace: openshift-ansible-service-broker
  41. state: absent
  42. kind: Deployment
  43. # TODO: saw a oc_configmap in the library, but didn't understand how to get it to do the following:
  44. - name: remove config map for ansible-service-broker
  45. oc_obj:
  46. name: broker-config
  47. namespace: openshift-ansible-service-broker
  48. state: absent
  49. kind: ConfigMap
  50. # TODO: Is this going to work?
  51. - name: remove broker object from the catalog
  52. oc_obj:
  53. name: ansible-service-broker
  54. state: absent
  55. kind: Broker