Update to 2020-04-24 20:00

master
Daniel Berteaud 5 years ago
parent 783b21aa1a
commit 8060b1bfbe
  1. 11
      roles/jitsi/defaults/main.yml
  2. 5
      roles/jitsi/tasks/install.yml
  3. 17
      roles/jitsi/tasks/update_lang.yml

@ -204,6 +204,17 @@ jitsi_meet_interface_conf_base:
jitsi_meet_interface_conf_extra: {} jitsi_meet_interface_conf_extra: {}
jitsi_meet_interface_conf: "{{ jitsi_meet_interface_conf_base | combine(jitsi_meet_interface_conf_extra, recursive=True) }}" jitsi_meet_interface_conf: "{{ jitsi_meet_interface_conf_base | combine(jitsi_meet_interface_conf_extra, recursive=True) }}"
# You can customize strings here (lang/main-XX.json)
jitsi_meet_custom_lang:
fr:
welcomepage:
title: >-
La vidéoconférence simple, sécurisée, libre
appDescription: >-
Choisissez un nom ou bien laisser le système en créer un pour vous,
partagez le lien avec qui vous voulez.
Jamais la vidéoconférence n'a été aussi simple
# If jitsi_auth is ldap # If jitsi_auth is ldap
# We inherit values from prosody if available, or we try to get values from ad_auth or ldap_auth # We inherit values from prosody if available, or we try to get values from ad_auth or ldap_auth

@ -152,6 +152,11 @@
when: (jitsi_meet_git.changed and jitsi_manage_upgrade) or not jitsi_meet_index.stat.exists when: (jitsi_meet_git.changed and jitsi_manage_upgrade) or not jitsi_meet_index.stat.exists
tags: jitsi tags: jitsi
- name: Update languages
include_tasks: update_lang.yml
loop: "{{ jitsi_meet_custom_lang.keys() | list }}"
tags: jitsi
- name: Install dehydrated hook - name: Install dehydrated hook
template: src=dehydrated_hook.sh.j2 dest=/etc/dehydrated/hooks_deploy_cert.d/jitsi.sh mode=755 template: src=dehydrated_hook.sh.j2 dest=/etc/dehydrated/hooks_deploy_cert.d/jitsi.sh mode=755
tags: jitsi tags: jitsi

@ -0,0 +1,17 @@
---
- name: Read default lang file
command: cat {{ jitsi_root_dir }}/src/meet/lang/main-{{ item }}.json
register: jitsi_meet_default_lang
changed_when: False
tags: jitsi
- name: Merge with custom strings
set_fact:
jitsi_meet_lang: "{{ jitsi_meet_default_lang.stdout | from_json | combine(jitsi_meet_custom_lang[item] | default({}), recursive=True) }}"
tags: jitsi
- name: Save new lang file
copy: content={{ jitsi_meet_lang | to_nice_json }} dest={{ jitsi_root_dir }}/meet/lang/main-{{ item }}.json
tags: jitsi
Loading…
Cancel
Save