diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-09-14 13:09:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-14 13:09:36 -0400 |
commit | 9275b0e945375726b12e059b581fd843445a961e (patch) | |
tree | 1369ae1af17b8d124144a3c82225d126a158860a /roles/openshift_examples/tasks | |
parent | 992c0ce69460c616dde56dc3e21131945b5fe536 (diff) | |
parent | eda9e2190db0c9c52ba6ce7008355dc0c2d6e67a (diff) | |
download | openshift-9275b0e945375726b12e059b581fd843445a961e.tar.gz openshift-9275b0e945375726b12e059b581fd843445a961e.tar.bz2 openshift-9275b0e945375726b12e059b581fd843445a961e.tar.xz openshift-9275b0e945375726b12e059b581fd843445a961e.zip |
Merge pull request #2442 from bparees/quickstarts
get quickstarts from origin, not upstream example repos
Diffstat (limited to 'roles/openshift_examples/tasks')
-rw-r--r-- | roles/openshift_examples/tasks/main.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/openshift_examples/tasks/main.yml b/roles/openshift_examples/tasks/main.yml index 4150fabec..058ad8888 100644 --- a/roles/openshift_examples/tasks/main.yml +++ b/roles/openshift_examples/tasks/main.yml @@ -73,6 +73,27 @@ failed_when: "'already exists' not in oex_import_db_templates.stderr and oex_import_db_templates.rc != 0" changed_when: false +- name: Remove defunct quickstart template files + file: + path: "{{ item }}" + state: absent + with_items: + - "{{ quickstarts_base }}/nodejs.json" + - "{{ quickstarts_base }}/cakephp.json" + - "{{ quickstarts_base }}/dancer.json" + - "{{ quickstarts_base }}/django.json" + +- name: Remove defunct quickstart templates from openshift namespace + command: "{{ openshift.common.client_binary }} -n openshift delete templates/{{ item }}" + with_items: + - nodejs-example + - cakephp-example + - dancer-example + - django-example + register: oex_delete_defunct_quickstart_templates + failed_when: "'not found' not in oex_delete_defunct_quickstart_templates.stderr and oex_delete_defunct_quickstart_templates.rc != 0" + changed_when: false + - name: Import quickstart-templates command: > {{ openshift.common.client_binary }} {{ openshift_examples_import_command }} -n openshift -f {{ quickstarts_base }} |