Skip to content
Snippets Groups Projects
Commit 50b4621c authored by jurgenhaas's avatar jurgenhaas
Browse files

Extract plugin re-installation into separate file

parent 2a76ab89
No related branches found
No related tags found
No related merge requests found
......@@ -32,26 +32,9 @@
notify:
- Restart Elasticsearch
- name: Uninstall Plugins
elasticsearch_plugin:
name: '{{ item }}'
state: absent
with_items:
- ingest-attachment
tags:
- reinstall-plugins
- name: Install Plugins
elasticsearch_plugin:
name: '{{ item }}'
state: present
force: yes
with_items:
- ingest-attachment
- include_tasks: re-install-plugins.yml
tags:
- reinstall-plugins
notify:
- Restart Elasticsearch
- name: Configure ES
lineinfile:
......
---
# file: roles/elasticsearch/tasks/re-install-plugins.yml
- name: Uninstall Plugins
elasticsearch_plugin:
name: '{{ item }}'
state: absent
with_items:
- ingest-attachment
- name: Install Plugins
elasticsearch_plugin:
name: '{{ item }}'
state: present
force: yes
with_items:
- ingest-attachment
- name: Restart Elasticsearch
service:
name: elasticsearch
state: restarted
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