mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-10-22 22:34:16 +00:00
Load Element and SchildiChat themes in a stable order (#5660)
This commit is contained in:
@@ -38,7 +38,8 @@
|
||||
ansible.builtin.slurp:
|
||||
path: "{{ item.path }}"
|
||||
register: "matrix_client_element_theme_file_contents"
|
||||
with_items: "{{ matrix_client_element_theme_file_list.files }}"
|
||||
# `find` lists files in filesystem order, which can differ between checkouts. Sorting keeps the generated `config.json` the same, so the service is not restarted needlessly.
|
||||
with_items: "{{ matrix_client_element_theme_file_list.files | sort(attribute='path', case_sensitive=true) }}"
|
||||
|
||||
- name: Load Element Web theme
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
@@ -37,7 +37,8 @@
|
||||
ansible.builtin.slurp:
|
||||
path: "{{ item.path }}"
|
||||
register: "matrix_client_schildichat_theme_file_contents"
|
||||
with_items: "{{ matrix_client_schildichat_theme_file_list.files }}"
|
||||
# `find` lists files in filesystem order, which can differ between checkouts. Sorting keeps the generated `config.json` the same, so the service is not restarted needlessly.
|
||||
with_items: "{{ matrix_client_schildichat_theme_file_list.files | sort(attribute='path', case_sensitive=true) }}"
|
||||
|
||||
- name: Load SchildiChat Web theme
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
Reference in New Issue
Block a user