From 79e60f2f201e1330a2716825dac985abb7a2bef0 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 28 Aug 2019 23:24:34 +0200 Subject: Create application template if instantination is disabeld --- roles/openshift_resource/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roles/openshift_resource') 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 -- cgit v1.2.3