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.
This commit is contained in:
Slavi Pantaleev
2025-04-29 10:37:57 +03:00
parent 3ee7deb2d7
commit 51e961ce9f
2 changed files with 3 additions and 0 deletions

View File

@ -177,6 +177,8 @@ matrix_container_global_registry_prefix_override: ""
matrix_user_name: "matrix"
matrix_user_system: true
matrix_user_shell: /sbin/nologin
matrix_group_name: "matrix"
matrix_group_system: true