---

- tags:
    - setup-all
    - setup-synapse
  block:
    - when: not matrix_synapse_enabled | bool
      ansible.builtin.include_tasks: "{{ role_path }}/tasks/ext/setup_uninstall.yml"

- tags:
    - setup-all
    - setup-synapse
  block:
    - when: not matrix_synapse_workers_enabled | bool
      ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/workers/setup_uninstall.yml"

- tags:
    - setup-all
    - setup-synapse
  block:
    - when: not matrix_synapse_enabled | bool
      ansible.builtin.include_tasks: "{{ role_path }}/tasks/synapse/setup_uninstall.yml"

- tags:
    - setup-all
    - setup-synapse
  block:
    - when: not matrix_s3_media_store_enabled | bool
      ansible.builtin.include_tasks: "{{ role_path }}/tasks/goofys/setup_uninstall.yml"