matrix-docker-ansible-deploy/docs/configuring-playbook-riot-web.md
Suguru Hirahara e8548e0016
Mention how much "just install-all" is faster than "just setup-all"
This way, the "installing" sections would cover from beginners to advanced (professional) readers.

Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2024-12-02 20:00:58 +09:00

2.5 KiB

Configuring Riot-web (optional)

By default, this playbook used to install the Riot-web Matrix client web application.

Riot has since been renamed to Element.

Migrating to Element Web

Migrating your custom settings

If you have custom matrix_riot_web_ variables in your inventory/host_vars/matrix.example.com/vars.yml file, you'll need to rename them (matrix_riot_web_ -> matrix_client_element_).

Some other playbook variables (but not all) with riot in their name are also renamed. The playbook checks and warns if you are using the old name for some commonly used ones.

Domain migration

We used to set up Riot at the riot.example.com domain. The playbook now sets up Element Web at element.example.com by default.

There are a few options for handling this:

  • (avoiding changes - using the old riot.example.com domain and avoiding DNS changes) -- to keep using riot.example.com instead of element.example.com, override the domain at which the playbook serves Element Web: matrix_server_fqn_element: "riot.{{ matrix_domain }}"

  • (embracing changes - using only element.example.com) - set up the element.example.com DNS record (see Configuring DNS). You can drop the riot.example.com in this case.

Re-running the playbook

After configuring the playbook, run it with playbook tags as below:

ansible-playbook -i inventory/hosts setup.yml --tags=setup-all,start

The shortcut commands with the just program are also available: just install-all or just setup-all

just install-all is useful for maintaining your setup quickly (2x-5x faster than just setup-all) when its components remain unchanged. If you adjust your vars.yml to remove other components, you'd need to run just setup-all, or these components will still remain installed. Note these shortcuts run the ensure-matrix-users-created tag too.