diff options
author | Ben Parees <bparees@redhat.com> | 2016-09-13 16:16:10 +0200 |
---|---|---|
committer | Ben Parees <bparees@redhat.com> | 2016-09-14 09:22:34 +0200 |
commit | eda9e2190db0c9c52ba6ce7008355dc0c2d6e67a (patch) | |
tree | af35b677ebaf2044c173fc58453631e5a910eee0 /roles/openshift_examples/tasks | |
parent | e1ce7d7b305cf5dc2cd7077a462416155fc89be7 (diff) | |
download | openshift-eda9e2190db0c9c52ba6ce7008355dc0c2d6e67a.tar.gz openshift-eda9e2190db0c9c52ba6ce7008355dc0c2d6e67a.tar.bz2 openshift-eda9e2190db0c9c52ba6ce7008355dc0c2d6e67a.tar.xz openshift-eda9e2190db0c9c52ba6ce7008355dc0c2d6e67a.zip |
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 }} |