Slavi Pantaleev
3daf14d695
Add Ansible variables to control the `async_media` settings in (mautrix) bridges
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/4549
hace 6 meses
Slavi Pantaleev
d876da4186
Explicitly tell template-lookup to not auto-parse JSON files
ansible-core>=2.19.0 only auto-parses YAML files, not JSON.
Previous ansible-core versions auto-parsed JSON as well, but ansible-core>=2.19.0
doesn't, so we added a `from_json` post-filter.
However, older versions auto-parsing JSON and turning it into a dict, on
which we later run `from_json` is no good.
In this patch, we try to equalize behavior and configure Ansible to never parse JSON,
hopefully making old-Ansible behave like new Ansible.
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/4458
Ref: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/template_lookup.html#parameter-convert_data
hace 7 meses
Slavi Pantaleev
90813b3739
Pass the result of JSON-file template lookups through `from_json` for better ansible-core>=2.19.0 compatibility
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/4445
It seems like ansible-core 2.19.0 no longer automatically parses template lookup content
as JSON (into a dict) when dealing with template files (be it `file.json.j2` or `file.j2`).
For files detected to contain YAML (`.ya?ml.j2`, but possibly others),
it automatically parses YAML, because the `convert_data` option
for the template lookup defaults to `true`.
Ref: https://docs.ansible.com/ansible/latest/collections/ansible/builtin/template_lookup.html
hace 7 meses
Suguru Hirahara
379229c4e0
Add license information to files for matrix-bridge-appservice-kakaotalk
This commit adds copyright attributions in SPDX to the files for matrix-bridge-appservice-kakaotalk following REUSE's specification.
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
hace 1 año
Slavi Pantaleev
c47eca389b
Rework all roles to include `component_(docker|container)_image_registry_prefix*` variables
This:
- brings consistency - no more mixing `_name_prefix` and `_registry_prefix`
- adds extensibility - a future patch will allow reconfiguring all registry prefixes for all roles in the playbook
We still have `_docker_` vs `_container_` inconsistencies.
These may be worked on later.
hace 1 año
Slavi Pantaleev
4224741130
Remove a few remaining hardcoded docker.service references
Continuation of 9f2eff2ac7
Provoked by 7749048bf8
(https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3353 )
hace 1 año
Slavi Pantaleev
9f2eff2ac7
Respect `devture_systemd_docker_base_docker_service_name`
Related to 0241c71a4c
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/3270#issuecomment-2143782962
With this change, it should be possible for people to adjust the Docker
dependency from `docker.service` to something else (e.g. `pkg-ContainerManager-dockerd.service`),
or to completely eliminate it by setting `devture_systemd_docker_base_docker_service_name` to an empty string.
This makes it easier for people to use the playbook against a Synology DSM server.
hace 1 año
gardar
23aee07cf4
feat: global option to configure all bridges encryption default
Signed-off-by: gardar <gardar@users.noreply.github.com>
hace 2 años
Slavi Pantaleev
7ec6fd3dfe
Make bridges/bots use matrix_addons_homeserver_client_api_url (instead of matrix_homeserver_container_url)
hace 2 años
Slavi Pantaleev
3fe3d5a78c
Move matrix-bridge-appservice-kakaotalk to its own container network
hace 2 años
Aine
a5cb6272d8
add global bridges relay mode switch
hace 2 años
Aine
7399496d33
one var to control encryption across all bridges ( #2629 )
* one var to control encryption across all bridges
* move var to matrix-base
hace 3 años
Slavi Pantaleev
7b43ef34b7
Remove more hardcoded matrix-postgres references
hace 3 años
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.
hace 3 años