parent
3c5adf9961
commit
717dd74a9f
2 changed files with 5 additions and 5 deletions
|
|
@ -21,7 +21,7 @@
|
|||
- name: Remove elasticsearch plugins
|
||||
command: "{{es_home}}/bin/plugin remove {{item}} --silent"
|
||||
ignore_errors: yes
|
||||
with_items: installed_plugins.stdout_lines
|
||||
with_items: "{{ installed_plugins.stdout_lines }}"
|
||||
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
|
||||
environment:
|
||||
|
|
@ -42,7 +42,7 @@
|
|||
register: plugin_installed
|
||||
failed_when: "'Failed to install' in plugin_installed.stderr"
|
||||
changed_when: plugin_installed.rc == 0
|
||||
with_items: es_plugins
|
||||
with_items: "{{ es_plugins }}"
|
||||
when: es_plugins is defined and not es_plugins is none
|
||||
notify: restart elasticsearch
|
||||
environment:
|
||||
|
|
@ -51,4 +51,4 @@
|
|||
|
||||
#Set permissions on plugins directory
|
||||
- name: Set Plugin Directory Permissions
|
||||
file: state=directory path={{ plugin_dir }} owner={{ es_user }} group={{ es_group }} recurse=yes
|
||||
file: state=directory path={{ plugin_dir }} owner={{ es_user }} group={{ es_group }} recurse=yes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue