From 2f2a58dcce9b05e7b536859844c5e3429daa09d4 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 12 Feb 2018 16:14:34 +0100 Subject: [PATCH] library/roles/smartgears/ckan_connector/templates/ckan-web.xml.j2: Set the hostname value in the same way is set into container.xml --- smartgears/ckan_connector/templates/ckan-web.xml.j2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/smartgears/ckan_connector/templates/ckan-web.xml.j2 b/smartgears/ckan_connector/templates/ckan-web.xml.j2 index a20ce21..9df7ec3 100644 --- a/smartgears/ckan_connector/templates/ckan-web.xml.j2 +++ b/smartgears/ckan_connector/templates/ckan-web.xml.j2 @@ -9,7 +9,11 @@ hostname - {{ ansible_fqdn }} + {% if hostname is defined %} + {{ hostname }} + {% else %} + {{ smartgears_hostname }} + {% endif %} internalPort