Minor formatting
This commit is contained in:
parent
ba8fed0063
commit
183513ecbc
2 changed files with 14 additions and 2 deletions
|
|
@ -1,10 +1,19 @@
|
|||
---
|
||||
|
||||
#es_plugins_reinstall will be set to true if elasticsearch_install.changed i.e. we have changed ES version
|
||||
- set_fact: es_plugins_reinstall=true
|
||||
when: elasticsearch_install.changed
|
||||
|
||||
#List currently installed plugins
|
||||
|
||||
|
||||
|
||||
#This needs to removed installed plugins not those listed
|
||||
- name: Remove elasticsearch plugins
|
||||
command: "{{es_home}}/bin/plugin remove {{ item.plugin }} --silent"
|
||||
ignore_errors: yes
|
||||
with_items: es_plugins
|
||||
when: ( ansible_os_family == 'RedHat' or ansible_os_family == 'Debian' ) and es_plugins_reinstall
|
||||
when: es_plugins_reinstall
|
||||
notify: restart elasticsearch
|
||||
environment:
|
||||
CONF_DIR: "{{ conf_dir }}"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@
|
|||
|
||||
- debug: msg="Node configuration {{ es_config }} "
|
||||
|
||||
#- name: Include specific Elasticsearch
|
||||
# include: "elasticsearch-{{ansible_os_family}}.yml"
|
||||
|
||||
#Install OS specific elasticsearch - this can be abbreviated in version 2.0.0
|
||||
- name: Include specific Elasticsearch
|
||||
include: elasticsearch-Debian.yml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue