Slavi Pantaleev
430f350733
Stop using deprecated `vars` variable
3 miesięcy temu
Slavi Pantaleev
3a11a32f9e
Do not rely on ansible-core>=2.19.0 to process Jinja blocks inside strings found in other strings blocks
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/4445
7 miesięcy temu
Slavi Pantaleev
465df3a949
Add support for synapse-http-antispam and integrate it with Draupnir
Supersedes https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/4284
10 miesięcy temu
Suguru Hirahara
a4532762c2
Add license information to files in matrix-synapse/tasks/ext
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
1 rok temu
Slavi Pantaleev
f2585fa171
Adjust matrix-synapse-s3-storage-provider-migrate.{service,timer} permissions
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/3917
1 rok temu
aquila
ac40afefff
Add missing configuration matrix_synapse_ext_synapse_auto_accept_invite_accept_invites_only_from_local_users to specifies whether only invites from local users will be auto accepted.
1 rok temu
xvsun
905bdfc551
Add Synapse module auto accept invite to rooms and direct messages ( #3195 )
* feat: auto-accept-invite module and docs
* fix: name typos and some forgot to adjust variables
* fix: accept only direct messages should work now and better wording
* changed: only_direct_messages variable naming
* feat: add logger, add synapse workers config
* Fix typo and add details about synapse-auto-acccept-invite
* Add newline at end of file
* Fix alignment
* Fix logger name for synapse_auto_accept_invite
The name of the logger needs to match the name of the Python module.
Ref: d673c67678/synapse_auto_accept_invite/__init__.py (L20)
* Add missing document start YAML annotation
* Remove trailing spaces
---------
Co-authored-by: Slavi Pantaleev <slavi@devture.com>
2 lat temu
Slavi Pantaleev
abdb4375db
Add matrix_synapse_additional_loggers_auto and matrix_synapse_additional_loggers_custom
2 lat temu
Slavi Pantaleev
e03ec11fcf
Switch mjolnir-antispam from using spam_checker to modules
`spam_checker` has been deprecated for quite a while.
While it still probably works and while newer versions of
mjolnir-antispam still use it, we should switch to the new API.
2 lat temu
Slavi Pantaleev
92ea048080
Add some missing install-all/install-synapse tags to Synapse role
2 lat temu
Zac
f026c7cee1
Apply suggestions from code review
Co-authored-by: Slavi Pantaleev <slavi@devture.com>
2 lat temu
cbackas
f6d260dc00
this is better
2 lat temu
cbackas
0e701bbece
add var to make the creds optional
2 lat temu
Zac
ceda4c41cc
remove the offending lines
2 lat temu
Slavi Pantaleev
dddfee16bc
Fix all 300+ ansible-lint-reported errors
3 lat temu
Slavi Pantaleev
632026513e
Add matrix_synapse_uid, matrix_synapse_gid and matrix_synapse_username
3 lat temu
Luke Moch
dd51ad2ba2
fail if matrix_synapse_ext_synapse_s3_storage_provider_config_endpoint_url 'not' startswith('http')
3 lat temu
Slavi Pantaleev
d81e7d6328
Make matrix_synapse_ext_synapse_s3_storage_provider_config_endpoint_url required
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2330
3 lat temu
Slavi Pantaleev
7464604ddd
Make use of matrix_synapse_ext_s3_storage_provider_data_path in a few more places
3 lat temu
Slavi Pantaleev
7c5c3aedc4
Put s3-storage-provider scripts under /matrix/synapse/ext/s3-storage-provider/bin, not /usr/local/bin
3 lat temu
Slavi Pantaleev
735e7355a5
Rename variable (matrix_synapse_ext_s3_storage_provider_path -> matrix_synapse_ext_s3_storage_provider_base_path)
3 lat temu
Slavi Pantaleev
a04f6f4e3d
Optimize uninstall tasks a bit
- forego removing Docker images - it's not effective anyway, because it
only removes the last version.. which is a drop in the bucket, usually
- do not reload systemd - it's none of our business. `--tags=start`,
etc., handle this
- combine all uninstall tasks under a single block, which only runs if
we detect traces (a leftover systemd .service file) of the component.
If no such .service is detected, we skip them all. This may lead to
incorect cleanup in rare cases, but is good enough for the most part.
3 lat temu
Slavi Pantaleev
2e7b5c7b02
Untangle the setup import/include mess in matrix-synapse
3 lat temu
Slavi Pantaleev
d29b0aeddb
Replace even more import_tasks calls with include_tasks
3 lat temu
Slavi Pantaleev
0ea7cb5d18
Remove various init.yml files - initialize systemd services, etc., statically (not at runtime)
3 lat temu
Slavi Pantaleev
5ef70015cb
Ensure git is installed using ansible.builtin.package, not using a distro-specific package manager module
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/2228
3 lat temu
Slavi Pantaleev
d3bd1ca024
matrix_*_retries_{count,delay} -> devture_playbook_help_*_retries_{count,delay}
3 lat temu
Slavi Pantaleev
835d2e9581
matrix_systemd_path -> devture_systemd_docker_base_systemd_path (via com.devture.ansible.role.systemd_docker_base)
3 lat temu
Slavi Pantaleev
410a915a8a
Move roles/matrix* to roles/custom/matrix*
This paves the way for installing other roles into `roles/galaxy` using `ansible-galaxy`,
similar to how it's done in:
- https://github.com/spantaleev/gitea-docker-ansible-deploy
- https://github.com/spantaleev/nextcloud-docker-ansible-deploy
In the near future, we'll be removing a lot of the shared role code from here
and using upstream roles for it. Some of the core `matrix-*` roles have
already been extracted out into other reusable roles:
- https://github.com/devture/com.devture.ansible.role.postgres
- https://github.com/devture/com.devture.ansible.role.systemd_docker_base
- https://github.com/devture/com.devture.ansible.role.timesync
- https://github.com/devture/com.devture.ansible.role.vars_preserver
- https://github.com/devture/com.devture.ansible.role.playbook_runtime_messages
- https://github.com/devture/com.devture.ansible.role.playbook_help
We just need to migrate to those.
3 lat temu