library/roles/geonetwork/geonetwork/tasks/main.yml: Create webapps/geonetwork before unpacking the distribution.
This commit is contained in:
parent
4901a70b5c
commit
380f0f3310
|
@ -16,10 +16,6 @@
|
||||||
file: dest={{ geonetwork_download_directory }}/geonetwork.war state=absent
|
file: dest={{ geonetwork_download_directory }}/geonetwork.war state=absent
|
||||||
when: geonetwork_upgrade
|
when: geonetwork_upgrade
|
||||||
|
|
||||||
- name: Create the Geonetwork webapp directory
|
|
||||||
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
|
- name: Download the Geonetwork file distribution
|
||||||
get_url: url='{{ geonetwork_download_url }}' dest={{ geonetwork_download_directory }}/geonetwork.{{ geonetwork_version }}.war
|
get_url: url='{{ geonetwork_download_url }}' dest={{ geonetwork_download_directory }}/geonetwork.{{ geonetwork_version }}.war
|
||||||
register: geonetwork_download
|
register: geonetwork_download
|
||||||
|
@ -27,7 +23,11 @@
|
||||||
- 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 | lower }} 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 is changed )
|
when: geonetwork_download is changed
|
||||||
|
|
||||||
|
- name: Create the Geonetwork webapp directory
|
||||||
|
file: path={{ item.instance_path }}/webapps/{{ geonetwork_app_name | lower }} state=directory owner={{ item.user }} group={{ item.user }}
|
||||||
|
with_items: '{{ tomcat_m_instances }}'
|
||||||
|
|
||||||
- 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 }}
|
||||||
|
|
Loading…
Reference in New Issue