From e016c6e5a6cabd2bb342d156a0665873d002854f Mon Sep 17 00:00:00 2001 From: phil Date: Sun, 28 Nov 2021 16:13:57 +0100 Subject: [PATCH] Konfiguriere ES --- tasks/elastic.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/tasks/elastic.yml b/tasks/elastic.yml index b99ea8e..ff82c73 100644 --- a/tasks/elastic.yml +++ b/tasks/elastic.yml @@ -52,3 +52,21 @@ RAILS_ENV: production become: true become_user: "{{ zammad_user }}" + +- name: "elastic | Konfiguriere Datei-Erweiterungen" + shell: + cmd: rbenv exec rails r "Setting.set('es_attachment_ignore', [ '.png', '.jpg', '.jpeg', '.mpeg', '.mpg', '.mov', '.bin', '.exe', '.box', '.mbox' ] )" + chdir: "{{ zammad_home }}" + environment: + RAILS_ENV: production + become: true + become_user: "{{ zammad_user }}" + +- name: "elastic | Konfiguriere Datei-Größen" + shell: + cmd: rbenv exec rails r "Setting.set('es_attachment_max_size_in_mb', {{ es_attachment_max_size }})" + chdir: "{{ zammad_home }}" + environment: + RAILS_ENV: production + become: true + become_user: "{{ zammad_user }}"