remove.yml 721 B

12345678910111213141516171819202122232425262728
  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 }}/{{ __tsb_template_file }}"
  9. - name: Delete TSB objects
  10. shell: >
  11. oc process -f "{{ __tsb_files_location }}/{{ __tsb_template_file }}" | kubectl delete -f -
  12. - name: empty out tech preview extension file for service console UI
  13. copy:
  14. src: remove-openshift-ansible-catalog-console.js
  15. dest: /etc/origin/master/openshift-ansible-catalog-console.js
  16. - oc_project:
  17. name: openshift-template-service-broker
  18. state: absent
  19. - file:
  20. state: absent
  21. name: "{{ mktemp.stdout }}"
  22. changed_when: False
  23. become: no