Fix the tomcat solr tasks.

This commit is contained in:
Andrea Dell'Amico 2019-04-11 19:05:03 +02:00
parent d1cb3ff921
commit 0e3d2f85d6
2 changed files with 12 additions and 9 deletions

View File

@ -37,3 +37,13 @@ solr_multicore: False
solr_cores:
- collection1
solr_additional_packages:
- libslf4j-java
- libcommons-logging-java
solr_data_subdirs:
- data/solr
- webapps
- zoo_data
- collection_data
- conf/Catalina/localhost

View File

@ -1,11 +1,7 @@
---
- name: Ensure that the solr data directory exists
file: path={{ solr_data_dir }}/{{ item }} state=directory mode=0775 owner={{ solr_user }} group={{ solr_user }}
with_items:
- data/solr
- webapps
- zoo_data
- collection_data
with_items: '{{ solr_data_subdirs }}'
tags: solr
- name: Create the link from the tomcat instance for solr to the solr data directory
@ -14,10 +10,7 @@
tags: solr
- name: Solr needs some additional packages
apt: pkg={{ item }} state={{ pkg_state }}
with_items:
- libslf4j-java
- libcommons-logging-java
apt: pkg={{ solr_additional_packages }} state={{ pkg_state }}
tags: [ solr, tomcat ]
- name: Let the additional packages jar files visible to tomcat