---

- ansible.builtin.import_role:
    name: custom/matrix-base
    tasks_from: ensure_openssl_installed

#
# Tasks related to setting up jitsi
#

- name: Ensure Matrix jitsi base path exists
  ansible.builtin.file:
    path: "{{ item.path }}"
    state: directory
    mode: 0750
    owner: "{{ matrix_user_username }}"
    group: "{{ matrix_user_groupname }}"
  with_items:
    - {path: "{{ matrix_jitsi_base_path }}", when: true}
  when: matrix_jitsi_enabled | bool and item.when

#
# Tasks related to getting rid of jitsi (if it was previously enabled)
#
