Skip to content

Commit 183513e

Browse files
author
Dale McDiarmid
committed
Minor formatting
1 parent ba8fed0 commit 183513e

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

tasks/elasticsearch-plugins.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
---
22

3+
#es_plugins_reinstall will be set to true if elasticsearch_install.changed i.e. we have changed ES version
4+
- set_fact: es_plugins_reinstall=true
5+
when: elasticsearch_install.changed
6+
7+
#List currently installed plugins
8+
9+
10+
11+
#This needs to removed installed plugins not those listed
312
- name: Remove elasticsearch plugins
413
command: "{{es_home}}/bin/plugin remove {{ item.plugin }} --silent"
514
ignore_errors: yes
615
with_items: es_plugins
7-
when: ( ansible_os_family == 'RedHat' or ansible_os_family == 'Debian' ) and es_plugins_reinstall
16+
when: es_plugins_reinstall
817
notify: restart elasticsearch
918
environment:
1019
CONF_DIR: "{{ conf_dir }}"

tasks/elasticsearch.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88

99
- debug: msg="Node configuration {{ es_config }} "
1010

11-
# Install OS specific elasticsearch - this can be abbreviated in version 2.0.0
11+
#- name: Include specific Elasticsearch
12+
# include: "elasticsearch-{{ansible_os_family}}.yml"
13+
14+
#Install OS specific elasticsearch - this can be abbreviated in version 2.0.0
1215
- name: Include specific Elasticsearch
1316
include: elasticsearch-Debian.yml
1417
when: ansible_os_family == 'Debian'

0 commit comments

Comments
 (0)