zammad: Führe Translations-Sync auch bei Installation aus
This commit is contained in:
parent
f7a7a569a4
commit
60e3bc7019
1 changed files with 25 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
- name: "database: Datenbank anlegen"
|
||||
- name: "database | Datenbank anlegen"
|
||||
postgresql_db:
|
||||
name: "{{ zammad_database_name }}"
|
||||
encoding: UTF8
|
||||
|
@ -9,7 +9,7 @@
|
|||
delegate_to: "{{ database_host }}"
|
||||
register: database_created
|
||||
|
||||
- name: "database: Benutzer einrichten"
|
||||
- name: "database | Benutzer einrichten"
|
||||
postgresql_user:
|
||||
name: "{{ zammad_database_user }}"
|
||||
password: "{{ zammad_database_password }}"
|
||||
|
@ -18,7 +18,7 @@
|
|||
become_user: postgres
|
||||
delegate_to: "{{ database_host }}"
|
||||
|
||||
- name: "database: Konfiguration kopieren"
|
||||
- name: "database | Konfiguration kopieren"
|
||||
template:
|
||||
src: database.yml.j2
|
||||
dest: "{{ zammad_database_configuration }}"
|
||||
|
@ -26,7 +26,7 @@
|
|||
group: "{{ zammad_user }}"
|
||||
mode: 0600
|
||||
|
||||
- name: "database: Stoppe Service"
|
||||
- name: "database | Stoppe Service"
|
||||
service:
|
||||
name: zammad
|
||||
state: stopped
|
||||
|
@ -34,7 +34,7 @@
|
|||
changed_when: false
|
||||
failed_when: "unused_disable is failed and ('find' not in unused_disable.msg and 'found' not in unused_disable.msg)"
|
||||
|
||||
- name: "database: Führe Migrationen aus"
|
||||
- name: "database | Führe Migrationen aus"
|
||||
shell: "rbenv exec bundle exec rake db:migrate"
|
||||
args:
|
||||
chdir: "{{ zammad_home }}"
|
||||
|
@ -43,7 +43,7 @@
|
|||
environment:
|
||||
RAILS_ENV: production
|
||||
|
||||
- name: "database: Führe Seeds aus"
|
||||
- name: "database | Führe Seeds aus"
|
||||
shell: "rbenv exec bundle exec rake db:seed"
|
||||
args:
|
||||
chdir: "{{ zammad_home }}"
|
||||
|
@ -53,7 +53,7 @@
|
|||
RAILS_ENV: production
|
||||
when: database_created.changed
|
||||
|
||||
- name: "database: Precompile Assets"
|
||||
- name: "database | Precompile Assets"
|
||||
shell: "rbenv exec bundle exec rake assets:precompile"
|
||||
args:
|
||||
chdir: "{{ zammad_home }}"
|
||||
|
@ -61,3 +61,21 @@
|
|||
become_user: "{{ zammad_user }}"
|
||||
environment:
|
||||
RAILS_ENV: production
|
||||
|
||||
- name: "database | Synchronisiere Locales"
|
||||
shell: rbenv exec rails r "Locale.sync"
|
||||
args:
|
||||
chdir: "{{ zammad_home }}"
|
||||
become: true
|
||||
become_user: "{{ zammad_user }}"
|
||||
environment:
|
||||
RAILS_ENV: production
|
||||
|
||||
- name: "database | Synchronisiere Translations"
|
||||
shell: rbenv exec rails r "Translation.sync"
|
||||
args:
|
||||
chdir: "{{ zammad_home }}"
|
||||
become: true
|
||||
become_user: "{{ zammad_user }}"
|
||||
environment:
|
||||
RAILS_ENV: production
|
||||
|
|
Loading…
Reference in a new issue