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:
|
postgresql_db:
|
||||||
name: "{{ zammad_database_name }}"
|
name: "{{ zammad_database_name }}"
|
||||||
encoding: UTF8
|
encoding: UTF8
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
delegate_to: "{{ database_host }}"
|
delegate_to: "{{ database_host }}"
|
||||||
register: database_created
|
register: database_created
|
||||||
|
|
||||||
- name: "database: Benutzer einrichten"
|
- name: "database | Benutzer einrichten"
|
||||||
postgresql_user:
|
postgresql_user:
|
||||||
name: "{{ zammad_database_user }}"
|
name: "{{ zammad_database_user }}"
|
||||||
password: "{{ zammad_database_password }}"
|
password: "{{ zammad_database_password }}"
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
become_user: postgres
|
become_user: postgres
|
||||||
delegate_to: "{{ database_host }}"
|
delegate_to: "{{ database_host }}"
|
||||||
|
|
||||||
- name: "database: Konfiguration kopieren"
|
- name: "database | Konfiguration kopieren"
|
||||||
template:
|
template:
|
||||||
src: database.yml.j2
|
src: database.yml.j2
|
||||||
dest: "{{ zammad_database_configuration }}"
|
dest: "{{ zammad_database_configuration }}"
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
group: "{{ zammad_user }}"
|
group: "{{ zammad_user }}"
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
|
||||||
- name: "database: Stoppe Service"
|
- name: "database | Stoppe Service"
|
||||||
service:
|
service:
|
||||||
name: zammad
|
name: zammad
|
||||||
state: stopped
|
state: stopped
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
changed_when: false
|
changed_when: false
|
||||||
failed_when: "unused_disable is failed and ('find' not in unused_disable.msg and 'found' not in unused_disable.msg)"
|
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"
|
shell: "rbenv exec bundle exec rake db:migrate"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zammad_home }}"
|
chdir: "{{ zammad_home }}"
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
environment:
|
environment:
|
||||||
RAILS_ENV: production
|
RAILS_ENV: production
|
||||||
|
|
||||||
- name: "database: Führe Seeds aus"
|
- name: "database | Führe Seeds aus"
|
||||||
shell: "rbenv exec bundle exec rake db:seed"
|
shell: "rbenv exec bundle exec rake db:seed"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zammad_home }}"
|
chdir: "{{ zammad_home }}"
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
RAILS_ENV: production
|
RAILS_ENV: production
|
||||||
when: database_created.changed
|
when: database_created.changed
|
||||||
|
|
||||||
- name: "database: Precompile Assets"
|
- name: "database | Precompile Assets"
|
||||||
shell: "rbenv exec bundle exec rake assets:precompile"
|
shell: "rbenv exec bundle exec rake assets:precompile"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zammad_home }}"
|
chdir: "{{ zammad_home }}"
|
||||||
|
@ -61,3 +61,21 @@
|
||||||
become_user: "{{ zammad_user }}"
|
become_user: "{{ zammad_user }}"
|
||||||
environment:
|
environment:
|
||||||
RAILS_ENV: production
|
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