summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2016-07-26 10:25:40 -0400
committerScott Dodson <sdodson@redhat.com>2016-07-26 13:38:28 -0400
commite222cb75df84ddd1d9d53d3960f31e2d8b757ffe (patch)
tree3e4e883c5db44d182e9923fd385362176435cdee
parente05e6eafbf50761fdc67148162ef9a0fe2c2cfb0 (diff)
downloadopenshift-e222cb75df84ddd1d9d53d3960f31e2d8b757ffe.tar.gz
openshift-e222cb75df84ddd1d9d53d3960f31e2d8b757ffe.tar.bz2
openshift-e222cb75df84ddd1d9d53d3960f31e2d8b757ffe.tar.xz
openshift-e222cb75df84ddd1d9d53d3960f31e2d8b757ffe.zip
Remove old sso70-basic templates
-rw-r--r--roles/openshift_examples/tasks/main.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/roles/openshift_examples/tasks/main.yml b/roles/openshift_examples/tasks/main.yml
index 7ea39f51e..14a7cb56e 100644
--- a/roles/openshift_examples/tasks/main.yml
+++ b/roles/openshift_examples/tasks/main.yml
@@ -58,6 +58,18 @@
failed_when: "'already exists' not in oex_import_infrastructure.stderr and oex_import_infrastructure.rc != 0"
changed_when: false
+- name: Remove old xPaas template files
+ file:
+ path: "{{ item }}"
+ state: absent
+ with_items:
+ - "{{ xpaas_templates }}/sso70-basic.json"
+
+- name: Remove old xPaas templates from openshift namespace
+ command: oc delete -n openshift {{ item }}
+ with_items:
+ - sso70-basic
+
- name: Import xPaas image streams
command: >
{{ openshift.common.client_binary }} {{ openshift_examples_import_command }} -n openshift -f {{ xpaas_image_streams }}