ansible-role-zammad/tasks/opensearch.yml

46 lines
1.6 KiB
YAML
Raw Normal View History

---
- 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 }}')"
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 }})"
chdir: "{{ zammad_home }}"
environment:
RAILS_ENV: production
become: true
become_user: "{{ zammad_user }}"