From d03a0211677e11b9c2495cfc0e8e0fff2650b8f3 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 26 Jul 2017 21:04:05 +0200 Subject: [PATCH] Other fixes to the main geonetwork playboo. The application name must be lowercase. --- geonetwork/geonetwork/tasks/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/geonetwork/geonetwork/tasks/main.yml b/geonetwork/geonetwork/tasks/main.yml index 8b1e3bca..870ddeca 100644 --- a/geonetwork/geonetwork/tasks/main.yml +++ b/geonetwork/geonetwork/tasks/main.yml @@ -20,19 +20,19 @@ file: path={{ geonetwork_download_directory }} state=directory - name: Create the Geonetwork webapp directory - file: path={{ item.instance_path }}/webapps/{{ geonetwork_app_name }} state=directory owner={{ item.user }} group={{ item.user }} + file: path={{ item.instance_path }}/webapps/{{ geonetwork_app_name | lower }} state=directory owner={{ item.user }} group={{ item.user }} with_items: '{{ tomcat_m_instances }}' - name: Download the Geonetwork file distribution get_url: url='{{ geonetwork_download_url }}' dest={{ geonetwork_download_directory }}/geonetwork.war - name: Unpack the Geonetwork war file - unarchive: copy=no src={{ geonetwork_download_directory }}/geonetwork.war dest={{ item.instance_path }}/webapps/{{ geonetwork_app_name }} creates={{ item.instance_path }}/webapps/{{ geonetwork_app_name }}/WEB-INF/lib owner={{ item.user }} group={{ item.user }} + unarchive: copy=no src={{ geonetwork_download_directory }}/geonetwork.war dest={{ item.instance_path }}/webapps/{{ geonetwork_app_name | lower }} creates={{ item.instance_path }}/webapps/{{ geonetwork_app_name | lower }}/WEB-INF/lib owner={{ item.user }} group={{ item.user }} with_items: '{{ tomcat_m_instances }}' notify: tomcat instances restart - name: Configure geonetwork using our template - template: src=geonetwork_config.xml.j2 dest={{ item.instance_path }}/webapps/{{ geonetwork_app_name }}/WEB-INF/config.xml + template: src=geonetwork_config.xml.j2 dest={{ item.instance_path }}/webapps/{{ geonetwork_app_name | lower }}/WEB-INF/config.xml with_items: '{{ tomcat_m_instances }}' notify: tomcat instances restart @@ -41,7 +41,7 @@ - block: - name: Remove the Geonetwork webapp directory - file: path={{ item.instance_path }}/webapps/{{ geonetwork_app_name }} state=absent + file: path={{ item.instance_path }}/webapps/{{ geonetwork_app_name | lower }} state=absent with_items: '{{ tomcat_m_instances }}' notify: tomcat instances restart