diff --git a/defaults/main.yml b/defaults/main.yml index 682f31d..d1a9ae7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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" diff --git a/tasks/elastic.yml b/tasks/elastic.yml index e79327a..49acfb7 100644 --- a/tasks/elastic.yml +++ b/tasks/elastic.yml @@ -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"