Slavi Pantaleev
51e961ce9f
Add `matrix_user_shell` and default it to `/sbin/nologin`
This is a backward-incompatible change. By default, Ansible creates
users with (e.g.) `/bin/sh` on Linux, so changing to a no shell
leads to different behavior.
That said, it appears that using a shell-less user works OK with regard
to Ansible execution and starting the systemd services/containers later on.
10 meses atrás
Slavi Pantaleev
3ee7deb2d7
Rename variable (`matrix_user_groupname` -> `matrix_group_name`)
10 meses atrás
Slavi Pantaleev
9fc5cdab33
Rename variable (`matrix_user_username` -> `matrix_user_name`)
10 meses atrás
Slavi Pantaleev
a59383fcc7
Add `matrix_group_system` to configure whether the `matrix` group is also created as a system group
We create the `matrix` user as a system user (smaller uid), so it makes
sense to do the same for the `matrix` group.
10 meses atrás
Slavi Pantaleev
14aef55573
Add `matrix_user_system` variable for controlling if `matrix` user is created as a system user
This defaults to `true`, as before.
10 meses atrás
Suguru Hirahara
c6babc1202
Add license information to files in matrix-base
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
1 ano atrás
Slavi Pantaleev
787a82d6e8
Combine matrix user/group set_fact calls into one
3 anos atrás
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 anos atrás
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 anos atrás
Marko Weltzer
7e5b88c3b7
fix: all praise the allmighty yamllinter
4 anos atrás
Michael Collins
98e6cd685d
sync with previous repo
4 anos atrás
Slavi Pantaleev
43c5f3ec6e
Do not create /home/matrix when creating the matrix user
5 anos atrás
Slavi Pantaleev
227f1a28e3
Allow matrix_user_uid/matrix_user_gid to be specified manually
5 anos atrás
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.
5 anos atrás