28 lines
1.1 KiB
YAML
28 lines
1.1 KiB
YAML
|
---
|
||
|
- name: Manage the cross-layer extension
|
||
|
block:
|
||
|
- set_fact:
|
||
|
ansible_python_interpreter: /usr/bin/python3.6
|
||
|
when: ansible_distribution_release == "trusty"
|
||
|
|
||
|
- name: Download and unpack the Geoserver crossfilter extension
|
||
|
unarchive: copy=no src={{ geoserver_querylayer_extension_url }} dest={{ item.instance_path }}/webapps/{{ geoserver_app_name | lower }}/WEB-INF/lib/ creates={{ item.instance_path }}/webapps/{{ geoserver_app_name | lower }}/WEB-INF/lib/gs-querylayer-2.10.5.jar owner={{ item.user }} group={{ item.user }}
|
||
|
with_items: '{{ tomcat_m_instances }}'
|
||
|
notify: tomcat multiple-instances restart
|
||
|
|
||
|
- set_fact:
|
||
|
ansible_python_interpreter: /usr/bin/python
|
||
|
when: ansible_distribution_release == "trusty"
|
||
|
|
||
|
when: geoserver_crosslayer_extension
|
||
|
tags: [ 'geoserver', 'geoserver_crossfilter' ]
|
||
|
- block:
|
||
|
- name: Remove the crossfilter extension if not needed
|
||
|
file: path={{ item.instance_path }}/webapps/{{ geoserver_app_name | lower }}/WEB-INF/lib/gs-querylayer-2.10.5.jar state=absent
|
||
|
with_items: '{{ tomcat_m_instances }}'
|
||
|
|
||
|
when: not geoserver_spatial_install
|
||
|
tags: [ 'geoserver', 'spatialite' ]
|
||
|
|
||
|
|