# SPDX-FileCopyrightText: 2022 - 2023 Slavi Pantaleev
# SPDX-FileCopyrightText: 2023 Nikita Chernyi
#
# SPDX-License-Identifier: AGPL-3.0-or-later

---

- tags:
    # This role intentionally doesn't do work on a `setup-all` tag.
    # If it did, the initial installation (`--tags=setup-all`) would also potentially polute the database with data,
    # which would make importing a database dump problematic.
    - ensure-matrix-users-created
    - ensure-users-created
  block:
    - when: matrix_user_creator_users | length > 0
      ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup.yml"
