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
|
- name: Remove elasticsearch plugins
|
||||||
command: "{{es_home}}/bin/plugin remove {{ item.plugin }} --silent"
|
command: "{{es_home}}/bin/plugin remove {{ item.plugin }} --silent"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
with_items: es_plugins
|
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
|
notify: restart elasticsearch
|
||||||
environment:
|
environment:
|
||||||
CONF_DIR: "{{ conf_dir }}"
|
CONF_DIR: "{{ conf_dir }}"
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,10 @@
|
||||||
|
|
||||||
- debug: msg="Node configuration {{ es_config }} "
|
- debug: msg="Node configuration {{ es_config }} "
|
||||||
|
|
||||||
# Install OS specific elasticsearch - this can be abbreviated in version 2.0.0
|
#- 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
|
- name: Include specific Elasticsearch
|
||||||
include: elasticsearch-Debian.yml
|
include: elasticsearch-Debian.yml
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue