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 }}"