geoserver: minor changes. The upgrade path is broken, the 'unarchive' task must be changed in future so that it does a get_url and then a local unarchive.

This commit is contained in:
Andrea Dell'Amico 2018-02-09 09:52:46 +01:00
parent 1b1f8a85f8
commit e8a566e35d
2 changed files with 9 additions and 2 deletions

View File

@ -17,9 +17,16 @@
with_items: '{{ tomcat_m_instances }}'
- name: Download the Geoserver file distribution
unarchive: copy=no src={{ geoserver_download_url }} dest={{ geoserver_download_directory }} creates={{ geoserver_download_directory }}/geoserver.war validate_certs=False
unarchive: copy=no src={{ geoserver_download_url }} dest={{ geoserver_download_directory }} creates={{ geoserver_download_directory }}/geoserver-{{ geoserver_version }}.war validate_certs=False
register: geoserver_download
- name: Remove the old geoserver instance if there's any
file: dest=dest={{ item.instance_path }}/webapps/{{ geoserver_app_name | lower }} state=absent
with_items: '{{ tomcat_m_instances }}'
when: ( geoserver_download | changed )
- name: Unpack the Geoserver war file
#unarchive: copy=no src={{ geoserver_download_directory }}/geoserver-{{ geoserver_version }}.war dest={{ item.instance_path }}/webapps/{{ geoserver_app_name | lower }} creates={{ item.instance_path }}/webapps/{{ geoserver_app_name | lower }}/WEB-INF/lib owner={{ item.user }} group={{ item.user }}
unarchive: copy=no src={{ geoserver_download_directory }}/geoserver.war dest={{ item.instance_path }}/webapps/{{ geoserver_app_name | lower }} creates={{ item.instance_path }}/webapps/{{ geoserver_app_name | lower }}/WEB-INF/lib owner={{ item.user }} group={{ item.user }}
with_items: '{{ tomcat_m_instances }}'
notify: tomcat instances restart

View File

@ -1,2 +1,2 @@
---
- include: geoserver.yml
- import_tasks: geoserver.yml