---

- tags:
    - setup-all
    - setup-synapse-reverse-proxy-companion
    - setup-synapse
    - install-all
    - install-synapse-reverse-proxy-companion
    - install-synapse
  block:
    - when: matrix_synapse_reverse_proxy_companion_enabled | bool
      ansible.builtin.include_tasks: "{{ role_path }}/tasks/setup_install.yml"

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