Slavi Pantaleev
227d9d8209
Fix variable name typo
3 years ago
Slavi Pantaleev
2688e8bfc3
Optimize initial installation by not reloading systemd after each .service install
We expect `--tags=start` to handle systemd reloading, so we don't need
to do it manually each time we install/uninstall a .service file.
3 years ago
Slavi Pantaleev
d3bd1ca024
matrix_*_retries_{count,delay} -> devture_playbook_help_*_retries_{count,delay}
3 years ago
Slavi Pantaleev
835d2e9581
matrix_systemd_path -> devture_systemd_docker_base_systemd_path (via com.devture.ansible.role.systemd_docker_base)
3 years ago
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 years ago
Sebastian Gumprich
48388a3d96
use fqcns for some task
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
3 years ago
Slavi Pantaleev
4155ed2518
Leave docker_image module calls unprefixed to increase compatibility
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1965
3 years ago
Slavi Pantaleev
46ced6134c
Store maubot configuration separately from data
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1894
Because the configuration file is now mounted as readonly and maubot tries to update it on start,
we get this warning:
> Failed to create tempfile to write updated config to disk: [Errno 30] Read-only file system: '/config/tmpfa8vcb3y.yaml'
It doesn't seem to cause issues though.
Because the configuration is no longer overwritten on every bot start, each
next Ansible run should no longer overwrite it again and report a
"changed" task.
3 years ago
Slavi Pantaleev
d1649ff67b
Do not restart matrix-bot-maubot.service on every playbook run
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1894
3 years ago
Julian-Samuel Gebühr
04a817aeaa
Use explicit version for self build
3 years ago
Julian-Samuel Gebühr
f8a8870711
Use FQCN
3 years ago
Julian-Samuel Gebühr
73ebbdcacd
Move maubot nginx config
Reasoning: setup_install.yml only runs on --tags=setup-all or on --tags=setup-bot-maubot.
If --tags=setup-nginx-proxy or similar commands are run, setup_install.yml will not run and the nginx configuration will be incomplete.
3 years ago
Julian-Samuel Gebühr
ffa20357ea
Use http_bin_port and make networking clearer
3 years ago
Julian-Samuel Gebühr
4ab516fca8
Fix linter
3 years ago
Julian-Samuel Gebühr
07cfd3ba09
Use custom invocation instead of provided script
3 years ago
Stuart Mumford
320978cdf5
Enable setting database URI and other things
3 years ago
Julian-Samuel Gebühr
ba0caf395a
Create dckr-src file path only when neccessary
Co-authored-by: Slavi Pantaleev <slavi@devture.com>
3 years ago
Julian-Samuel Gebühr
6ed105b830
Rename service from matrix-maubot to matrix-bot-maubot
3 years ago
Julian-Samuel Gebühr
8806598f51
Add option to proxy management UI (now defaults to false)
3 years ago
Julian-Samuel Gebühr
4d40b61a51
Fix config error, add nginx
3 years ago
Julian-Samuel Gebühr
1316656998
Rename to bot_maubot and fix permission error
3 years ago
Julian-Samuel Gebühr
d24cb7db6f
Initial maubot commit
3 years ago