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.yml12
1 files changed, 9 insertions, 3 deletions
diff --git a/roles/openshift_resource/tasks/main.yml b/roles/openshift_resource/tasks/main.yml
index 8606aa3..086ab2b 100644
--- a/roles/openshift_resource/tasks/main.yml
+++ b/roles/openshift_resource/tasks/main.yml
@@ -23,9 +23,15 @@
when:
- tmpl.kind == "Template"
- strategy == "auto"
-
+
+# With results it populates empty templates....
- name: "Creating template/resources defined in {{ template }}"
include_tasks: resource.yml
- when: results | skipped
-
+ vars:
+ metadata: "{{ tmpl.metadata | default({}) }}"
+ annotations: "{{ metadata.annotations | default({}) }}"
+ strategy: "{{ annotations['kaas/strategy'] | default('auto') }}"
+ when: (tmpl.kind != "Template") or (strategy != "auto")
+# when: results | skipped
+
run_once: true