aggiunta task installazione jts core

This commit is contained in:
Marco Procaccini 2025-12-12 09:47:02 +01:00
parent aea310d24d
commit 82da0cc6df
2 changed files with 21 additions and 0 deletions

View File

@ -68,3 +68,8 @@ solr_prometheus_command_params: '-p {{ solr_prometheus_port }} -b {{ solr_zk_hos
solr_prometheus_data_dir: '{{ solr_base_dir }}/solr_prometheus_exporter'
solr_prometheus_conf_dir: '{{ solr_prometheus_data_dir }}/conf'
solr_prometheus_conf_file: '{{ solr_prometheus_conf_dir }}/solr-exporter-config.xml'
# JTS CORE
jts_version: "1.19.0"
jts_url: "https://repo1.maven.org/maven2/org/locationtech/jts/jts-core/{{ jts_version }}/jts-core-{{ jts_version }}.jar"
jts_install_dir: "{{ solr_base_dir }}/server/lib"

View File

@ -105,3 +105,19 @@
- name: Ensure that Solr prometheus exporter is started and enabled
service: name=solr_prometheus_exporter state=started enabled=yes
- name: Manage the installation of the JTS core
become: true
become_user: root
when:
- solr_install
- solr_mode == 'core'
tags: ['solr', 'solr_jts_core']
get_url:
url: "{{ jts_url }}"
dest: "{{ jts_jar_file }}.jar"
mode: '0644'
owner: "{{ solr_user }}"
group: "{{ solr_user }}"
notify: Solr restart