summaryrefslogtreecommitdiffstats
path: root/roles/ands_kaas/tasks/do_app.yml
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-08-29 04:57:11 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-08-29 04:57:11 +0200
commit9bf0de365fac18bf95d4929ccb9aee5200c6deba (patch)
tree51d387851c125d00d1b9699373617b2bc336a017 /roles/ands_kaas/tasks/do_app.yml
parente7175b16015060b2210e425db223b5a811b55806 (diff)
downloadands-9bf0de365fac18bf95d4929ccb9aee5200c6deba.tar.gz
ands-9bf0de365fac18bf95d4929ccb9aee5200c6deba.tar.bz2
ands-9bf0de365fac18bf95d4929ccb9aee5200c6deba.tar.xz
ands-9bf0de365fac18bf95d4929ccb9aee5200c6deba.zip
Do not provision app template with pods/builders if configuration is empty
Diffstat (limited to 'roles/ands_kaas/tasks/do_app.yml')
-rw-r--r--roles/ands_kaas/tasks/do_app.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/ands_kaas/tasks/do_app.yml b/roles/ands_kaas/tasks/do_app.yml
index c653b6d..1dfd12a 100644
--- a/roles/ands_kaas/tasks/do_app.yml
+++ b/roles/ands_kaas/tasks/do_app.yml
@@ -1,6 +1,8 @@
- name: "Process KaaS App builders"
include_tasks: "template.yml"
run_once: true
+ when:
+ - builders | length
vars:
tmpl_name: "40-kaas-app-builders.yml.j2"
yml_name: "{{ '80-' + (appname | default('kaas')) + '-builder.yml' }}"
@@ -8,6 +10,8 @@
- name: "Process KaaS App pods"
include_tasks: "template.yml"
run_once: true
+ when:
+ - pods | length
vars:
tmpl_name: "50-kaas-app-pods.yml.j2"
yml_name: "{{ '90-' + (appname | default('kaas')) + '.yml' }}"