2023-02-01 12:03:48 +01:00
|
|
|
---
|
|
|
|
- name: "Opensearch | Konfiguriere Dienst-Adresse"
|
|
|
|
ansible.builtin.shell:
|
2023-05-13 08:35:32 +02:00
|
|
|
cmd: rbenv exec bundle exec rails r "Setting.set('es_url', 'http://{{ opensearch_network_host }}:{{ opensearch_http_port }}')"
|
2023-02-01 12:03:48 +01:00
|
|
|
chdir: "{{ zammad_home }}"
|
|
|
|
environment:
|
|
|
|
RAILS_ENV: production
|
|
|
|
become: true
|
|
|
|
become_user: "{{ zammad_user }}"
|
|
|
|
|
|
|
|
- name: "Opensearch | Konfiguriere Index-Namespacing"
|
|
|
|
ansible.builtin.shell:
|
|
|
|
cmd: rbenv exec bundle exec rails r "Setting.set('es_index', Socket.gethostname.downcase + '_zammad')"
|
|
|
|
chdir: "{{ zammad_home }}"
|
|
|
|
environment:
|
|
|
|
RAILS_ENV: production
|
|
|
|
become: true
|
|
|
|
become_user: "{{ zammad_user }}"
|
|
|
|
|
|
|
|
- name: "Opensearch | Erstelle Such-Index"
|
|
|
|
ansible.builtin.shell:
|
|
|
|
cmd: rbenv exec bundle exec rake zammad:searchindex:rebuild
|
|
|
|
chdir: "{{ zammad_home }}"
|
|
|
|
environment:
|
|
|
|
RAILS_ENV: production
|
|
|
|
become: true
|
|
|
|
become_user: "{{ zammad_user }}"
|
|
|
|
|
|
|
|
- name: "Opensearch | Konfiguriere Datei-Erweiterungen"
|
|
|
|
ansible.builtin.shell:
|
|
|
|
cmd: rbenv exec bundle 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: "Opensearch | Konfiguriere Datei-Größen"
|
|
|
|
ansible.builtin.shell:
|
2023-05-13 08:35:32 +02:00
|
|
|
cmd: rbenv exec bundle exec rails r "Setting.set('es_attachment_max_size_in_mb', {{ opensearch_attachment_max_size }})"
|
2023-02-01 12:03:48 +01:00
|
|
|
chdir: "{{ zammad_home }}"
|
|
|
|
environment:
|
|
|
|
RAILS_ENV: production
|
|
|
|
become: true
|
|
|
|
become_user: "{{ zammad_user }}"
|