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.
2025-04-29 10:39:41 +03:00
Slavi Pantaleev
3ee7deb2d7
Rename variable (matrix_user_groupname
-> matrix_group_name
)
2025-04-29 10:39:41 +03:00
Slavi Pantaleev
9fc5cdab33
Rename variable (matrix_user_username
-> matrix_user_name
)
2025-04-29 10:39:41 +03:00
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.
2025-04-29 10:39:41 +03:00
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.
2025-04-29 10:39:41 +03:00
Suguru Hirahara
c6babc1202
Add license information to files in matrix-base
...
Signed-off-by: Suguru Hirahara <acioustick@noreply.codeberg.org>
2025-03-03 17:57:17 +09:00
Slavi Pantaleev
787a82d6e8
Combine matrix user/group set_fact calls into one
2022-11-23 17:07:52 +02:00
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