From 0d1872fb1d56fa0e4283a20bbde05dd29d18b781 Mon Sep 17 00:00:00 2001 From: Flavio Percoco Date: Thu, 2 Nov 2017 18:09:31 +0100 Subject: [PATCH] Allow for installing other roles Change-Id: I638f6001b8b02e2dc267bb0121ae988f31536873 --- tests/templates/playbook.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/templates/playbook.j2 b/tests/templates/playbook.j2 index 95a0c29..43c72a7 100644 --- a/tests/templates/playbook.j2 +++ b/tests/templates/playbook.j2 @@ -10,5 +10,9 @@ {% endif %} roles: +{% for dep in ansible_role_k8s_required|default('', true) %} + - role: {{dep}} + playbook_debug: false +{% endfor %} - role: {{project_name}} playbook_debug: false