From d393a18363dae4e4cc4c55c2cfe1ebc5e1f5466d Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 9 May 2017 14:22:19 +0200 Subject: [PATCH] library/roles/smartgears/gcubeapp-setup: More parameters in the gcube-app.xml template. --- smartgears/gcubeapp-setup/defaults/main.yml | 3 ++- smartgears/gcubeapp-setup/templates/gcube-app.xml.j2 | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/smartgears/gcubeapp-setup/defaults/main.yml b/smartgears/gcubeapp-setup/defaults/main.yml index 845eeae0..c1ed1e70 100644 --- a/smartgears/gcubeapp-setup/defaults/main.yml +++ b/smartgears/gcubeapp-setup/defaults/main.yml @@ -2,5 +2,6 @@ gcubeapp_setup: False #gcubeapp_webapps: -# - { webapp_name: '', version: '' } +# - { webapp_name: '', version: '', webapp_group: '', description: '', exclude_handlers: [ '' ] } + diff --git a/smartgears/gcubeapp-setup/templates/gcube-app.xml.j2 b/smartgears/gcubeapp-setup/templates/gcube-app.xml.j2 index db684863..d0a406f3 100644 --- a/smartgears/gcubeapp-setup/templates/gcube-app.xml.j2 +++ b/smartgears/gcubeapp-setup/templates/gcube-app.xml.j2 @@ -3,10 +3,17 @@ {{ item.1.webapp_name }} {{ item.1.webapp_group }} {{ item.1.version }} +{% if item.1.description is defined %} + +{% endif %} {% if item.1.persistence_location is defined %} {% endif %} - /* +{% if item.1.exclude_handlers is defined %} +{% for eh in exclude_handlers %} + +{% endfor %} +{% endif %}