Skip to content
Snippets Groups Projects
Commit 2c8859da authored by jurgenhaas's avatar jurgenhaas
Browse files

Fix re-installing plugins standalone

parent 93128620
No related branches found
No related tags found
No related merge requests found
---
# file: roles/elasticsearch/tasks/re-install-plugins.yml
- name: Uninstall Plugins
elasticsearch_plugin:
name: '{{ item }}'
state: absent
with_items:
- ingest-attachment
- block:
- name: Install Plugins
elasticsearch_plugin:
name: '{{ item }}'
state: present
force: yes
with_items:
- ingest-attachment
- name: Uninstall Plugins
elasticsearch_plugin:
name: '{{ item }}'
state: absent
with_items:
- ingest-attachment
- name: Restart Elasticsearch
service:
name: elasticsearch
state: restarted
- name: Install Plugins
elasticsearch_plugin:
name: '{{ item }}'
state: present
force: yes
with_items:
- ingest-attachment
- name: Restart Elasticsearch
service:
name: elasticsearch
state: restarted
tags:
- reinstall-plugins
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment