zammad: Korrigiere ES-Plugin-Installation

This commit is contained in:
phil 2022-02-15 13:15:16 +01:00
parent d226119686
commit 46a310a65b
2 changed files with 5 additions and 7 deletions

View file

@ -4,8 +4,6 @@ cron_file: /etc/cron.d/zammad
es_version: "7.10.2" es_version: "7.10.2"
es_url: "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-{{ es_version }}-amd64.deb" es_url: "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-oss-{{ es_version }}-amd64.deb"
es_dl_path: /data 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" es_attachment_max_size: "50"
ruby_path: "{{ zammad_user_home }}/.rbenv" ruby_path: "{{ zammad_user_home }}/.rbenv"

View file

@ -2,23 +2,23 @@
get_url: get_url:
url: "{{ es_url }}" url: "{{ es_url }}"
dest: "{{ es_dl_path }}" dest: "{{ es_dl_path }}"
when: "'elasticsearch-oss' in ansible_facts.packages == False" when: "'elasticsearch-oss' not in ansible_facts.packages"
- name: "elastic | Installiere Paket" - name: "elastic | Installiere Paket"
command: "dpkg -i elasticsearch-oss-{{ es_version }}-amd64.deb" command: "dpkg -i elasticsearch-oss-{{ es_version }}-amd64.deb"
args: args:
chdir: "{{ es_dl_path }}" 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" - name: "elastic | Prüfe Plugin"
stat: stat:
path: /usr/share/elasticsearch/plugins/ingest-attachment path: /usr/share/elasticsearch/plugins/ingest-attachment
register: ingest_plugin 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" - name: "eleastic | Installiere Plugin"
command: "elasticsearch-plugin install {{ es_ingest_attachment_url }}" command: elasticsearch-plugin install ingest-attachment --batch
args:
chdir: /usr/share/elasticsearch/bin
when: ingest_plugin.stat.exists == False when: ingest_plugin.stat.exists == False
- name: "elastic | Passe Konfiguration an" - name: "elastic | Passe Konfiguration an"