Commit 50b4621c authored by Jürgen Haas's avatar Jürgen Haas

Extract plugin re-installation into separate file

parent 2a76ab89
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment