Allow UI customization
This commit is contained in:
parent
86e793c624
commit
610a1faca8
5 changed files with 68 additions and 1 deletions
|
|
@ -140,6 +140,46 @@
|
|||
state: "{{ 'present' if jitsi__turn else 'absent' }}"
|
||||
become: true
|
||||
|
||||
# Files mounted into the web container, replacing or adding to the files of Jitsi Meet.
|
||||
- name: make sure the directories for the web files exist
|
||||
ansible.builtin.file:
|
||||
path: "{{ jitsi__base_dir }}/web-files/{{ item }}"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
owner: root
|
||||
group: root
|
||||
become: true
|
||||
loop: "{{ [''] + (jitsi__web_files | map(attribute='path') | map('dirname') | unique | reject('equalto', '') | list) }}"
|
||||
|
||||
- name: deploy the web files
|
||||
ansible.builtin.copy:
|
||||
content: "{{ item.content }}"
|
||||
dest: "{{ jitsi__base_dir }}/web-files/{{ item.path }}"
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: root
|
||||
become: true
|
||||
loop: "{{ jitsi__web_files }}"
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
# Single file bind mounts keep pointing to the replaced file until the container is restarted.
|
||||
notify: restart jitsi web
|
||||
|
||||
- name: find web files to remove
|
||||
ansible.builtin.find:
|
||||
paths: "{{ jitsi__base_dir }}/web-files"
|
||||
recurse: true
|
||||
register: jitsi__web_files_found
|
||||
|
||||
- name: remove web files, which should be removed
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: absent
|
||||
become: true
|
||||
loop: "{{ jitsi__web_files_found.files | map(attribute='path') | reject('in', jitsi__web_files_paths) | list }}"
|
||||
vars:
|
||||
jitsi__web_files_paths: "{{ jitsi__web_files | map(attribute='path') | map('regex_replace', '^', jitsi__base_dir ~ '/web-files/') | list }}"
|
||||
|
||||
# Changes to these make `docker compose up` below recreate the affected containers.
|
||||
- name: deploy the compose override file
|
||||
ansible.builtin.template:
|
||||
|
|
|
|||
Loading…
Reference in a new issue