---

#
# Tasks related to setting up jitsi
#

- name: Ensure Matrix jitsi base path exists
  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)
#