diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-08-28 23:24:34 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-08-28 23:24:34 +0200 |
commit | 79e60f2f201e1330a2716825dac985abb7a2bef0 (patch) | |
tree | 2790baf96cbdd9b040c3f18a52cd1a8aed63bdd1 /roles/openshift_resource/tasks | |
parent | fcc988835ce49dee4ce376565a9f643a165de74e (diff) | |
download | ands-79e60f2f201e1330a2716825dac985abb7a2bef0.tar.gz ands-79e60f2f201e1330a2716825dac985abb7a2bef0.tar.bz2 ands-79e60f2f201e1330a2716825dac985abb7a2bef0.tar.xz ands-79e60f2f201e1330a2716825dac985abb7a2bef0.zip |
Create application template if instantination is disabeld
Diffstat (limited to 'roles/openshift_resource/tasks')
-rw-r--r-- | roles/openshift_resource/tasks/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/openshift_resource/tasks/main.yml b/roles/openshift_resource/tasks/main.yml index 086ab2b..5dcc894 100644 --- a/roles/openshift_resource/tasks/main.yml +++ b/roles/openshift_resource/tasks/main.yml @@ -19,7 +19,7 @@ vars: metadata: "{{ tmpl.metadata | default({}) }}" annotations: "{{ metadata.annotations | default({}) }}" - strategy: "{{ annotations['kaas/strategy'] | default('auto') }}" + strategy: "{{ instantiate | default(true) | ternary (annotations['kaas/strategy'] | default('auto'), 'manual') }}" when: - tmpl.kind == "Template" - strategy == "auto" @@ -30,7 +30,7 @@ vars: metadata: "{{ tmpl.metadata | default({}) }}" annotations: "{{ metadata.annotations | default({}) }}" - strategy: "{{ annotations['kaas/strategy'] | default('auto') }}" + strategy: "{{ instantiate | default(true) | ternary (annotations['kaas/strategy'] | default('auto'), 'manual') }}" when: (tmpl.kind != "Template") or (strategy != "auto") # when: results | skipped |