mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-18 05:05:00 +00:00
b04b658735
* Replace "Element" with "Element Web" - If Element indicates the web application, then it is changed to Element Web. - If it indicates clients branded with Element such as Element desktop, web, mobile clients, then it is changed to Element clients. - If it is combined with location sharing functionality, it is not changed. with other some changes, including: - Change "app.element.io" anchor link to "https://github.com/element-hq/element-web" on README.md, following other documentation files Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Replace "SchildiChat" with "SchildiChat Web" - If SchildiChat indicates the web application, then it is changed to SchildiChat Web. - If it indicates clients branded with SchildiChat such as SchildiChat desktop, web, mobile clients, then it is changed to SchildiChat clients. - If it is combined with location sharing functionality, it is not changed. Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Rename configuring-playbook-client-schildichat.md to configuring-playbook-client-schildichat-web.md Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> * Rename configuring-playbook-client-element.md to configuring-playbook-client-element-web.md Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> --------- Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org> Co-authored-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
48 lines
1.6 KiB
YAML
48 lines
1.6 KiB
YAML
---
|
|
|
|
#
|
|
# Tasks related to setting up SchildiChat Web themes
|
|
#
|
|
|
|
- when: matrix_client_schildichat_themes_enabled | bool
|
|
run_once: true
|
|
delegate_to: 127.0.0.1
|
|
become: false
|
|
block:
|
|
- name: Ensure SchildiChat Web themes repository is pulled
|
|
ansible.builtin.git:
|
|
repo: "{{ matrix_client_schildichat_themes_repository_url }}"
|
|
version: "{{ matrix_client_schildichat_themes_repository_version }}"
|
|
dest: "{{ role_path }}/files/scratchpad/themes"
|
|
|
|
- name: Find all SchildiChat Web theme files
|
|
ansible.builtin.find:
|
|
paths: "{{ role_path }}/files/scratchpad/themes"
|
|
patterns: "*.json"
|
|
recurse: true
|
|
register: matrix_client_schildichat_theme_file_list
|
|
|
|
- name: Read SchildiChat Web theme
|
|
ansible.builtin.slurp:
|
|
path: "{{ item.path }}"
|
|
register: "matrix_client_schildichat_theme_file_contents"
|
|
with_items: "{{ matrix_client_schildichat_theme_file_list.files }}"
|
|
|
|
- name: Load SchildiChat Web theme
|
|
ansible.builtin.set_fact:
|
|
matrix_client_schildichat_setting_defaults_custom_themes: "{{ matrix_client_schildichat_setting_defaults_custom_themes + [item['content'] | b64decode | from_json] }}" # noqa var-naming
|
|
with_items: "{{ matrix_client_schildichat_theme_file_contents.results }}"
|
|
|
|
#
|
|
# Tasks related to getting rid of SchildiChat Web themes (if it was previously enabled)
|
|
#
|
|
|
|
- name: Ensure SchildiChat Web themes repository is removed
|
|
ansible.builtin.file:
|
|
path: "{{ role_path }}/files/scratchpad/themes"
|
|
state: absent
|
|
run_once: true
|
|
delegate_to: 127.0.0.1
|
|
become: false
|
|
when: "not matrix_client_schildichat_themes_enabled | bool"
|