Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hosts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
192.168.56.107
localhost
3 changes: 2 additions & 1 deletion roles/jiv_e.solr/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
jiv_solr__version: 4.7.2
jiv_solr__version: 4.10.4

## search_api_solr Drupal module ##
#Version
Expand All @@ -19,6 +19,7 @@ jiv_solr__user: solr

# This is appended to the end of the automatically fetched closest mirror URL.
# E.g. http://apache.mirror.rafal.ca/lucene/solr/
jiv_solr__url: "https://archive.apache.org/dist/lucene/solr"
jiv_solr__downloadPath: "{{ jiv_solr__version }}/solr-{{ jiv_solr__version }}.tgz"
jiv_solr__tempPath: /tmp/ansible_solr
jiv_solr__saveTarPath: "{{ jiv_solr__tempPath }}/solr-{{ jiv_solr__version }}.tgz"
Expand Down
4 changes: 2 additions & 2 deletions roles/jiv_e.solr/tasks/install-solr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
changed_when: false

- name: Print closest mirror
debug: msg="Closest mirror found - {{ jiv_solr__closestMirror.stdout }}"
debug: msg="Closest mirror found - {{ jiv_solr__url }}"
#"

- name: Ensure that temp folder is present
file: dest={{ jiv_solr__tempPath }} state=directory

- name: Download Apache Solr
get_url: url={{ jiv_solr__closestMirror.stdout }}/{{ jiv_solr__downloadPath }} dest={{ jiv_solr__saveTarPath }}
get_url: url={{ jiv_solr__url }}/{{ jiv_solr__downloadPath }} dest={{ jiv_solr__saveTarPath }}

- name: Ensure that Apache Solr install folder exists
file: dest={{ jiv_solr__installPath }} state=directory
Expand Down