From 73589728efbda028dc9c6d528397e2d2ed65633e Mon Sep 17 00:00:00 2001 From: phil Date: Sat, 27 Nov 2021 21:09:09 +0100 Subject: [PATCH] Fehlerkorrekturen --- tasks/elastic.yml | 10 ++++++++-- tasks/main.yml | 1 - 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/tasks/elastic.yml b/tasks/elastic.yml index e8ac182..05b6cab 100644 --- a/tasks/elastic.yml +++ b/tasks/elastic.yml @@ -1,12 +1,14 @@ - name: "elastic | Hole Paket" get_url: url: "{{ es_url }}" - path: "{{ es_dl_path }}" + dest: "{{ es_dl_path }}" + when: "'elasticsearch-oss' in ansible_facts.packages == False" - 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" - name: "elastic | Prüfe Plugin" stat: @@ -16,7 +18,7 @@ - name: "elastic | Hole Plugin" get_url: url: "{{ es_ingest_attachment_url }}" - path: "{{ es_dl_path }}" + dest: "{{ es_dl_path }}" when: ingest_plugin.stat.exists == False - name: "eleastic | Installiere Plugin" @@ -45,6 +47,8 @@ chdir: "{{ zammad_home }}" environment: RAILS_ENV: production + become: true + become_user: "{{ zammad_user }}" - name: "elastic | Erstelle Such-Index" shell: @@ -52,3 +56,5 @@ chdir: "{{ zammad_home }}" environment: RAILS_ENV: production + become: true + become_user: "{{ zammad_user }}" diff --git a/tasks/main.yml b/tasks/main.yml index a0f3b70..f369b14 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -33,5 +33,4 @@ - name: Elastic include_tasks: elastic.yml - when: "'elasticsearch-oss' in ansible_facts.packages == False" tags: elastic