Remove plugin folder before elasticsearch setup

This commit is contained in:
Xavier Rousset
2016-11-07 16:51:24 +01:00
parent 9d16ee8809
commit 7a49bb56e6

View File

@@ -31,6 +31,10 @@
apt: deb=/tmp/elasticsearch-{{ elasticsearch.version }}.deb
when: not is_installed
- name: Remove old plugin directory
shell: rm -rf /usr/share/elasticsearch/plugins/analysis-icu
sudo: yes
- name: Install plugins
shell: /usr/share/elasticsearch/bin/plugin install {{ item.name }}/{{ item.version }}
when: not is_installed