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.
2022-11-03 09:11:29 +02:00
Slavi Pantaleev
8a609e5cf2
Fix some ansible-lint-reported errors
2022-11-02 07:00:45 +02:00
ikkemaniac
3a49b0077c
fix ansible-lint errors
2022-11-01 09:23:55 +01:00
ikkemaniac
93615b6ad9
Revert "convert shell to command usage" to allow for a catching the specific "git: not found" error.
...
This reverts commit 45c9c2b17a
.
2022-10-31 23:38:54 +01:00
ikkemaniac
45c9c2b17a
convert shell to command usage
2022-10-31 23:08:45 +01:00
ikkemaniac
2b049da963
move when clause per linting suggestion
2022-10-31 23:00:04 +01:00
ikkemaniac
39e6484956
fix lints
2022-10-31 22:57:16 +01:00
ikkemaniac
fd25cf8f54
Update wording
2022-10-30 14:45:20 +01:00
ikkemaniac
3d902b7fe7
be more specific on GIT not found error
2022-10-30 14:35:44 +01:00
ikkemaniac
930867d50d
Remove matrix_vars_yml_snapshotting_enabled condition
2022-10-30 14:07:39 +01:00
ikkemaniac
230eea6784
Save git_hash.yml only on the target
2022-10-30 14:04:33 +01:00
ikkemaniac
678dfc6dc3
Rename var
2022-10-30 14:00:04 +01:00
ikkemaniac
80e57417f4
To recover from a failure or allow to quickly reset to known state we need to know with what playbook-commit the sever is installed. This commit saves the GIT hash/status when we run the playbook in a file called git_hash.yml. It also backs up that file by copying it to the target machine.
2022-10-29 23:58:46 +02:00
Sebastian Gumprich
48388a3d96
use fqcns for some task
...
Signed-off-by: Sebastian Gumprich <github@gumpri.ch>
2022-10-28 14:04:29 +02:00
Slavi Pantaleev
ddf18eadc7
More ansible-lint fixes
2022-07-18 13:01:17 +03:00
Slavi Pantaleev
34cdaade08
Use fully-qualified module names for builtin Ansible modules
...
Related to https://github.com/spantaleev/matrix-docker-ansible-deploy/pull/1939
2022-07-18 12:58:41 +03:00
Béla Becker
6921ec4b8a
Revert "Work around buggy docker_network sometimes failing to work"
...
The docker_network bug was fixed two years ago
This reverts commit 36658addcd
.
2020-12-05 19:02:10 +01:00
Slavi Pantaleev
7729511a84
Make vars.yml snapshotting optional and more configurable
...
Certain people organize their inventory in a different way
and we'd like to accommodate them.
Related to #542 (Github Issue).
2020-06-14 10:01:22 +03:00
Slavi Pantaleev
67ab7e7a1b
Preserve vars.yml on the server for easily restoring
...
Fixes #542 (Github Issues).
2020-06-13 07:52:01 +03:00
Slavi Pantaleev
36c61b5b4e
Introduce a separate group variable (matrix_user_groupname)
...
Related to #485 (Github Pull Request).
2020-05-06 10:02:47 +03:00
Slavi Pantaleev
8fea6f5130
Make sure matrix_user_uid and matrix_user_gid are always set
...
If one runs the playbook with `--tags=setup-all`, it would have been
fine.
But running with a specific tag (e.g. `--tags=setup-riot-web`) would
have made that initialization be skipped, and the `matrix-riot-web` role
would fail, due to missing variables.
2020-05-06 09:43:30 +03:00
Fanch
a1c5a197a9
remove default UID/GID
2020-05-04 21:43:54 +02:00
Chris van Dijk
7585bcc4ac
Allow the matrix user username and groupname to be configured separately
...
No migration steps should be required.
2020-05-01 19:59:32 +02:00
mooomooo
eebc6e13f8
Made directory variables for /etc/systemd/system , /etc/cron.d , /usr/local/bin
2020-03-24 11:27:58 -07:00
gusttt
25262fa0e1
Disable docker network tasks in check mode to allow running the playbook in check mode (--check --diff)
2019-09-17 22:24:38 +02:00
Stuart Mumford
f8ebd94d08
Make the mode of the base path configurable
2019-01-14 14:40:11 +00:00
Slavi Pantaleev
51312b8250
Split playbook into multiple roles
...
As suggested in #63 (Github issue), splitting the
playbook's logic into multiple roles will be beneficial for
maintainability.
This patch realizes this split. Still, some components
affect others, so the roles are not really independent of one
another. For example:
- disabling mxisd (`matrix_mxisd_enabled: false`), causes Synapse
and riot-web to reconfigure themselves with other (public)
Identity servers.
- enabling matrix-corporal (`matrix_corporal_enabled: true`) affects
how reverse-proxying (by `matrix-nginx-proxy`) is done, in order to
put matrix-corporal's gateway server in front of Synapse
We may be able to move away from such dependencies in the future,
at the expense of a more complicated manual configuration, but
it's probably not worth sacrificing the convenience we have now.
As part of this work, the way we do "start components" has been
redone now to use a loop, as suggested in #65 (Github issue).
This should make restarting faster and more reliable.
2019-01-12 18:01:10 +02:00