diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2018-03-22 04:37:46 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2018-03-22 04:37:46 +0100 |
commit | 0b0b9954c2d0602b1e9d0a387d2a195a790f8084 (patch) | |
tree | f0a3a26edd280b8fd84945944bd153f411b31fea /roles/openshift_resource | |
parent | e2c7b1305ca8495065dcf40fd2092d7c698dd6ea (diff) | |
download | ands-0b0b9954c2d0602b1e9d0a387d2a195a790f8084.tar.gz ands-0b0b9954c2d0602b1e9d0a387d2a195a790f8084.tar.bz2 ands-0b0b9954c2d0602b1e9d0a387d2a195a790f8084.tar.xz ands-0b0b9954c2d0602b1e9d0a387d2a195a790f8084.zip |
Various fixes and provide ADEI admin container...
Diffstat (limited to 'roles/openshift_resource')
-rw-r--r-- | roles/openshift_resource/tasks/template.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/openshift_resource/tasks/template.yml b/roles/openshift_resource/tasks/template.yml index 3469464..f43b0f2 100644 --- a/roles/openshift_resource/tasks/template.yml +++ b/roles/openshift_resource/tasks/template.yml @@ -22,8 +22,8 @@ when: ((recreate|default(false)) or (results | changed)) and (results.results[item|int].rc == 0) # Replace often complains on various immutable variables it can't change. We ignore. - - name: "{{ template }}: Populate resources to {{project}} ({{ replace | ternary('replace', 'create') }})" - shell: "oc process -n {{project}} -f '{{ template_path }}/{{template}}' {{ template_args | default('') }} | oc {{ replace | ternary('replace', 'create') }} -n {{project}} -f - {{ create_args | default('') }}" + - name: "{{ template }}: Populate resources to {{project}} ({{ replace | default(false) | ternary('replace', 'create') }})" + shell: "oc process -n {{project}} -f '{{ template_path }}/{{template}}' {{ template_args | default('') }} | oc {{ replace | default(false) | ternary('replace', 'create') }} -n {{project}} -f - {{ create_args | default('') }}" register: status failed_when: (status.rc != 0) and not (replace | default(false)) when: |