Load Element and SchildiChat themes in a stable order (#5660)

This commit is contained in:
QEDeD
2026-10-19 09:16:31 +03:00
committed by GitHub
parent 56a51d8b8c
commit c71087d15d
2 changed files with 4 additions and 2 deletions
@@ -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: