File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
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
3
12
- name : Remove elasticsearch plugins
4
13
command : " {{es_home}}/bin/plugin remove {{ item.plugin }} --silent"
5
14
ignore_errors : yes
6
15
with_items : es_plugins
7
- when : ( ansible_os_family == 'RedHat' or ansible_os_family == 'Debian' ) and es_plugins_reinstall
16
+ when : es_plugins_reinstall
8
17
notify : restart elasticsearch
9
18
environment :
10
19
CONF_DIR : " {{ conf_dir }}"
Original file line number Diff line number Diff line change 8
8
9
9
- debug : msg="Node configuration {{ es_config }} "
10
10
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
12
15
- name : Include specific Elasticsearch
13
16
include : elasticsearch-Debian.yml
14
17
when : ansible_os_family == 'Debian'
You can’t perform that action at this time.
0 commit comments