remove.yml 1009 B

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