FIx the restart handler.

This commit is contained in:
Andrea Dell'Amico 2022-09-05 16:23:44 +02:00
parent 0c72d5a32a
commit 8b7edb9150
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
3 changed files with 7 additions and 7 deletions

View File

@ -6,7 +6,7 @@
- name: Download and unpack the Geoserver spatialite extension
unarchive: copy=no src={{ geoserver_spatial_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/spatialite-jdbc-3.7.2-2.4.jar owner={{ item.user }} group={{ item.user }}
with_items: '{{ tomcat_m_instances }}'
notify: tomcat instances restart
notify: tomcat multiple-instances restart
- name: Create the data directory where sqlite will store its files
file: dest={{ geoserver_spatial_db_dir }} state=directory owner={{ item.user }} group={{ item.user }}

View File

@ -42,13 +42,13 @@
- name: Unpack the Geoserver war file
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
notify: tomcat multiple-instances restart
- name: Remove the postgres jdbc driver when we want a JNDI profile
shell: rm -f {{ item.instance_path }}/webapps/{{ geoserver_app_name | lower }}/WEB-INF/lib/postgresql*.jdbc*.jar
with_items: '{{ tomcat_m_instances }}'
when: tomcat_install_pg_jdbc
notify: tomcat instances restart
notify: tomcat multiple-instances restart
- name: Download newer jar files when needed
get_url: url={{ item.1.url }} dest={{ item.0.instance_path }}/webapps/{{ geoserver_app_name | lower }}/WEB-INF/lib/{{ item.1.file }} owner={{ item.0.user }} group={{ item.0.user }} force=yes
@ -56,7 +56,7 @@
- '{{ tomcat_m_instances }}'
- '{{ geoserver_patches_data | default (omit) }}'
when: geoserver_additional_jars
notify: tomcat instances restart
notify: tomcat multiple-instances restart
tags: [ 'geoserver', 'geopatch' ]
when: geoserver_install
@ -66,7 +66,7 @@
- name: Remove the Geoserver webapp directory
file: path={{ item.instance_path }}/webapps/{{ geoserver_app_name | lower }} state=absent
with_items: '{{ tomcat_m_instances }}'
notify: tomcat instances restart
notify: tomcat multiple-instances restart
- name: Remove the Geoserver download and data directories
file: path={{ item }} state=absent

View File

@ -9,13 +9,13 @@
get_url: url={{ geoserver_marlin_renderer_github_url }} dest={{ item.instance_path }}/webapps/{{ geoserver_app_name | lower }}/WEB-INF/lib/{{ geoserver_marlin_jar_name }} owner={{ item.user }} group={{ item.user }} force=yes
with_items:
- '{{ tomcat_m_instances }}'
notify: tomcat instances restart
notify: tomcat multiple-instances restart
- name: Download the marlin renderer jar java2d file
get_url: url={{ geoserver_marlin_renderer_github_java2d_url }} dest={{ item.instance_path }}/webapps/{{ geoserver_app_name | lower }}/WEB-INF/lib/{{ geoserver_marlin_java2d_jar_name }} owner={{ item.user }} group={{ item.user }} force=yes
with_items:
- '{{ tomcat_m_instances }}'
notify: tomcat instances restart
notify: tomcat multiple-instances restart
- set_fact:
ansible_python_interpreter: /usr/bin/python