Other fixes to the main geonetwork playboo. The application name must be lowercase.

This commit is contained in:
Andrea Dell'Amico 2017-07-26 21:04:05 +02:00
parent 661ecfb79b
commit d03a021167
1 changed files with 4 additions and 4 deletions

View File

@ -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