migrate FluffyChat to SWS; add config mounting with correct server by default (#4922)
This commit is contained in:
@@ -12,7 +12,8 @@
|
||||
owner: "{{ matrix_user_name }}"
|
||||
group: "{{ matrix_group_name }}"
|
||||
with_items:
|
||||
- {path: "{{ matrix_client_fluffychat_data_path }}", when: true}
|
||||
- {path: "{{ matrix_client_fluffychat_base_path }}", when: true}
|
||||
- {path: "{{ matrix_client_fluffychat_config_path }}", when: true}
|
||||
- {path: "{{ matrix_client_fluffychat_container_src_files_path }}", when: "{{ matrix_client_fluffychat_container_image_self_build }}"}
|
||||
when: "item.when | bool"
|
||||
|
||||
@@ -52,12 +53,13 @@
|
||||
- name: Ensure FluffyChat Web config files installed
|
||||
ansible.builtin.template:
|
||||
src: "{{ item.src }}"
|
||||
dest: "{{ matrix_client_fluffychat_data_path }}/{{ item.name }}"
|
||||
dest: "{{ item.dest }}"
|
||||
mode: 0644
|
||||
owner: "{{ matrix_user_name }}"
|
||||
group: "{{ matrix_group_name }}"
|
||||
with_items:
|
||||
- {src: "{{ role_path }}/templates/labels.j2", name: "labels"}
|
||||
- {src: "{{ role_path }}/templates/labels.j2", dest: "{{ matrix_client_fluffychat_base_path }}/labels"}
|
||||
- {src: "{{ role_path }}/templates/config.json.j2", dest: "{{ matrix_client_fluffychat_config_path }}/config.json"}
|
||||
when: "item.src is not none"
|
||||
|
||||
- name: Ensure FluffyChat Web container network is created
|
||||
|
||||
@@ -25,5 +25,5 @@
|
||||
|
||||
- name: Ensure FluffyChat Web path doesn't exist
|
||||
ansible.builtin.file:
|
||||
path: "{{ matrix_client_fluffychat_data_path }}"
|
||||
path: "{{ matrix_client_fluffychat_base_path }}"
|
||||
state: absent
|
||||
|
||||
Reference in New Issue
Block a user