From 9bf0de365fac18bf95d4929ccb9aee5200c6deba Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Thu, 29 Aug 2019 04:57:11 +0200 Subject: Do not provision app template with pods/builders if configuration is empty --- roles/ands_kaas/tasks/do_app.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roles') 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' }}" -- cgit v1.2.3