mirror of
https://github.com/aljazceru/ansible-elasticsearch.git
synced 2025-12-18 17:44:20 +01:00
138 merges
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
- name: Remove elasticsearch plugins
|
- name: Remove elasticsearch plugins
|
||||||
command: "{{es_home}}/bin/plugin remove {{item}} --silent"
|
command: "{{es_home}}/bin/plugin remove {{item}} --silent"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
with_items: "{{ installed_plugins.stdout_lines }}"
|
with_items: "{{ installed_plugins.stdout_lines | default([]) }}"
|
||||||
when: es_plugins_reinstall and installed_plugins.stdout_lines | length > 0 and not 'No plugin detected' in installed_plugins.stdout_lines[0]
|
when: es_plugins_reinstall and installed_plugins.stdout_lines | length > 0 and not 'No plugin detected' in installed_plugins.stdout_lines[0]
|
||||||
notify: restart elasticsearch
|
notify: restart elasticsearch
|
||||||
register: plugin_installed
|
register: plugin_installed
|
||||||
@@ -38,8 +38,8 @@
|
|||||||
register: plugin_installed
|
register: plugin_installed
|
||||||
failed_when: "'ERROR' in plugin_installed.stdout"
|
failed_when: "'ERROR' in plugin_installed.stdout"
|
||||||
changed_when: plugin_installed.rc == 0
|
changed_when: plugin_installed.rc == 0
|
||||||
with_items: "{{ es_plugins }}"
|
with_items: "{{ es_plugins | default([]) }}"
|
||||||
when: es_plugins is defined and not es_plugins is none and es_plugins_reinstall
|
when: not es_plugins is none and es_plugins_reinstall
|
||||||
notify: restart elasticsearch
|
notify: restart elasticsearch
|
||||||
environment:
|
environment:
|
||||||
CONF_DIR: "{{ conf_dir }}"
|
CONF_DIR: "{{ conf_dir }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user