../library/roles/geonetwork/geonetwork/tasks/main.yml fix geonetwork_app_name variable (lower case added)

This commit is contained in:
Roberto Cirillo 2018-08-01 16:32:16 +02:00
parent 6bb719b96e
commit 26f12b74ee
1 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@
with_items: '{{ tomcat_m_instances }}' with_items: '{{ tomcat_m_instances }}'
- name: Remove the geonetwork webapp if we are upgrading - name: Remove the geonetwork webapp if we are upgrading
file: dest={{ item.instance_path }}/webapps/{{ geonetwork_app_name }} state=absent file: dest={{ item.instance_path }}/webapps/{{ geonetwork_app_name | lower }} state=absent
with_items: '{{ tomcat_m_instances }}' with_items: '{{ tomcat_m_instances }}'
when: geonetwork_upgrade when: geonetwork_upgrade
@ -25,9 +25,9 @@
register: geonetwork_download register: geonetwork_download
- name: Remove the geonetwork webapp if we downloaded a new version - name: Remove the geonetwork webapp if we downloaded a new version
file: dest={{ item.instance_path }}/webapps/{{ geonetwork_app_name }} state=absent file: dest={{ item.instance_path }}/webapps/{{ geonetwork_app_name | lower }} state=absent
with_items: '{{ tomcat_m_instances }}' with_items: '{{ tomcat_m_instances }}'
when: ( geonetwork_download | changed ) when: ( geonetwork_download is changed )
- name: Unpack the Geonetwork war file - name: Unpack the Geonetwork war file
unarchive: copy=no src={{ geonetwork_download_directory }}/geonetwork.{{ geonetwork_version }}.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 }} unarchive: copy=no src={{ geonetwork_download_directory }}/geonetwork.{{ geonetwork_version }}.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 }}