Slavi Pantaleev
c96a0156c0
Make matrix-dynamic-dns use its own container network
2 jaren geleden
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 jaren geleden
Slavi Pantaleev
7c2a7a8eb6
Replace most import_tasks calls with include_tasks for improved performance
3 jaren geleden
Slavi Pantaleev
d3bd1ca024
matrix_*_retries_{count,delay} -> devture_playbook_help_*_retries_{count,delay}
3 jaren geleden
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 jaren geleden
Sebastian Gumprich
48388a3d96
use fqcns for some task
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
3 jaren geleden
Slavi Pantaleev
d073c7ecb3
More ansible-lint fixes
3 jaren geleden
Slavi Pantaleev
ddf18eadc7
More ansible-lint fixes
3 jaren geleden
Slavi Pantaleev
34cdaade08
Use fully-qualified module names for builtin Ansible modules
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1939
3 jaren geleden
Slavi Pantaleev
2df993977a
Ensure git cloning when self-building is done with the matrix user, not root
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1749
4 jaren geleden
Aine
2da3768b20
Added retries to the docker pulls ( #1701 )
4 jaren geleden
Aine
701591e87e
Added retries to the docker pulls
4 jaren geleden
Marko Weltzer
7e5b88c3b7
fix: all praise the allmighty yamllinter
4 jaren geleden
Michael Collins
98e6cd685d
sync with previous repo
4 jaren geleden
Michael-GMH
86e4649578
GoMatrixHosting v0.5.5
4 jaren geleden
Michael-GMH
03006eb5ab
GoMatrixHosting v0.5.5
4 jaren geleden
Michael-GMH
85777e8f96
merge with upstream
4 jaren geleden
Slavi Pantaleev
1ab507349c
Fix self-building for various components on Ansible < 2.8
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/1070
4 jaren geleden
Slavi Pantaleev
be5263f397
Move self-building git repository URLs to variables (stop hardcoding)
5 jaren geleden
Slavi Pantaleev
5eed874199
Improve self-building experience (avoid conflict with pullable images)
Fixes https://github.com/spantaleev/matrix-docker-ansible-deploy/issues/716
This patch makes us use more fully-qualified container image names
(either prefixed with docker.io/ or with localhost/).
The latter happens when self-building is enabled.
We've recently had issues where if an image was removed manually
and the service was restarted (making `docker run` fetch it from Docker Hub, etc.),
we'd end up with a pulled image, even though we're aiming for a self-built one.
Re-running the playbook would then not do a rebuild, because:
- the image with that name already exists (even though it's something
else)
- we sometimes had conditional logic where we'd build only if the git
repo changed
By explicitly changing the name of the images (prefixing with localhost/),
we avoid such confusion and the possibility that we'd automatically pul something
which is not what we expect.
Also, I've removed that condition where building would happen on git
changes only. We now always build (unless an image with that name
already exists). We just force-build when the git repo changes.
5 jaren geleden
Scott Crossen
e894befd87
Updates to reviewer comments
5 jaren geleden
Scott Crossen
19721be8b1
removed dhcp option
5 jaren geleden
Scott Crossen
51cca4c312
Added containerization
5 jaren geleden