remove.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. ---
  2. - command: mktemp -d /tmp/tsb-ansible-XXXXXX
  3. register: mktemp
  4. changed_when: False
  5. become: no
  6. - copy:
  7. src: "{{ __tsb_files_location }}/{{ item }}"
  8. dest: "{{ mktemp.stdout }}/{{ item }}"
  9. with_items:
  10. - "{{ __tsb_template_file }}"
  11. - "{{ __tsb_broker_file }}"
  12. - name: Delete TSB broker
  13. shell: >
  14. {{ openshift.common.client_binary }} process -f "{{ mktemp.stdout }}/{{ __tsb_broker_file }}" | {{ openshift.common.client_binary }} delete --ignore-not-found -f -
  15. - name: Delete TSB objects
  16. shell: >
  17. {{ openshift.common.client_binary }} process -f "{{ mktemp.stdout }}/{{ __tsb_template_file }}" | {{ openshift.common.client_binary }} delete --ignore-not-found -f -
  18. - name: empty out tech preview extension file for service console UI
  19. copy:
  20. src: remove-openshift-ansible-catalog-console.js
  21. dest: /etc/origin/master/openshift-ansible-catalog-console.js
  22. - oc_project:
  23. name: openshift-template-service-broker
  24. state: absent
  25. - file:
  26. state: absent
  27. name: "{{ mktemp.stdout }}"
  28. changed_when: False
  29. become: no