zammad: Korrigiere ES-Plugin-Installation
This commit is contained in:
parent
d226119686
commit
46a310a65b
2 changed files with 5 additions and 7 deletions
|
@ -4,8 +4,6 @@ cron_file: /etc/cron.d/zammad
|
|||
es_version: "7.10.2"
|
||||
es_url: "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-{{ es_version }}-amd64.deb"
|
||||
es_dl_path: /data
|
||||
es_ingest_attachment_version: "7.10.2"
|
||||
es_ingest_attachment_url: "https://artifacts.elastic.co/downloads/elasticsearch-plugins/ingest-attachment/ingest-attachment-{{ es_ingest_attachment_version }}.zip"
|
||||
es_attachment_max_size: "50"
|
||||
|
||||
ruby_path: "{{ zammad_user_home }}/.rbenv"
|
||||
|
|
|
@ -2,23 +2,23 @@
|
|||
get_url:
|
||||
url: "{{ es_url }}"
|
||||
dest: "{{ es_dl_path }}"
|
||||
when: "'elasticsearch-oss' in ansible_facts.packages == False"
|
||||
when: "'elasticsearch-oss' not in ansible_facts.packages"
|
||||
|
||||
- name: "elastic | Installiere Paket"
|
||||
command: "dpkg -i elasticsearch-oss-{{ es_version }}-amd64.deb"
|
||||
args:
|
||||
chdir: "{{ es_dl_path }}"
|
||||
when: "'elasticsearch-oss' in ansible_facts.packages == False"
|
||||
when: "'elasticsearch-oss' not in ansible_facts.packages"
|
||||
|
||||
- name: "elastic | Prüfe Plugin"
|
||||
stat:
|
||||
path: /usr/share/elasticsearch/plugins/ingest-attachment
|
||||
register: ingest_plugin
|
||||
|
||||
# https://www.elastic.co/guide/en/elasticsearch/plugins/current/installation.html
|
||||
# Installiert die zur ES passende Plugin-Version - 7.10.2 (OSS)
|
||||
- name: "eleastic | Installiere Plugin"
|
||||
command: "elasticsearch-plugin install {{ es_ingest_attachment_url }}"
|
||||
args:
|
||||
chdir: /usr/share/elasticsearch/bin
|
||||
command: elasticsearch-plugin install ingest-attachment --batch
|
||||
when: ingest_plugin.stat.exists == False
|
||||
|
||||
- name: "elastic | Passe Konfiguration an"
|
||||
|
|
Loading…
Reference in a new issue