Changed plugin installation to config file
This commit is contained in:
parent
d8b4c9ee06
commit
53f6349999
2 changed files with 15 additions and 3 deletions
|
@ -53,6 +53,16 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: elasticsearch
|
group: elasticsearch
|
||||||
|
|
||||||
- name: Enable ingest-attachment plugin
|
- name: Set plugin configuration
|
||||||
shell:
|
template:
|
||||||
cmd: "{{ nextcloud_elasticsearch_bin_dir }}/elasticsearch-plugin install ingest-attachment"
|
src: elasticsearch-plugins.yml.j2
|
||||||
|
dest: /etc/elasticsearch/elasticsearch-plugins.yml
|
||||||
|
owner: root
|
||||||
|
group: elasticsearch
|
||||||
|
|
||||||
|
- name: Restart elasticsearch
|
||||||
|
service:
|
||||||
|
name: elasticsearch
|
||||||
|
state: restarted
|
||||||
|
enabled: yes
|
||||||
|
deamon_reload: yes
|
2
templates/elasticsearch-plugins.yml.j2
Normal file
2
templates/elasticsearch-plugins.yml.j2
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
plugins:
|
||||||
|
- id: ingest-attachment
|
Loading…
Add table
Add a link
Reference in a new issue