summaryrefslogtreecommitdiffstats
path: root/roles/openshift_resource/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_resource/tasks/main.yml')
-rw-r--r--roles/openshift_resource/tasks/main.yml4
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