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:
parent
1b1f8a85f8
commit
e8a566e35d
|
@ -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
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
---
|
||||
- include: geoserver.yml
|
||||
- import_tasks: geoserver.yml
|
||||
|
|
Loading…
Reference in New Issue