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
Branches
No related tags found
No related merge requests found
...@@ -32,26 +32,9 @@ ...@@ -32,26 +32,9 @@
notify: notify:
- Restart Elasticsearch - Restart Elasticsearch
- name: Uninstall Plugins - include_tasks: re-install-plugins.yml
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
tags: tags:
- reinstall-plugins - reinstall-plugins
notify:
- Restart Elasticsearch
- name: Configure ES - name: Configure ES
lineinfile: 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.
Please register or to comment