library/roles/smartgears/ckan_connector/templates/ckan-web.xml.j2: Set the hostname value in the same way is set into container.xml

This commit is contained in:
Andrea Dell'Amico 2018-02-12 16:14:34 +01:00
parent ec43ae70fe
commit 2f2a58dcce
1 changed files with 5 additions and 1 deletions

View File

@ -9,7 +9,11 @@
</context-param>
<context-param>
<param-name>hostname</param-name>
<param-value>{{ ansible_fqdn }}</param-value>
{% if hostname is defined %}
<param-value>{{ hostname }}</param-value>
{% else %}
<param-value>{{ smartgears_hostname }}</param-value>
{% endif %}
</context-param>
<context-param>
<param-name>internalPort</param-name>