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.
This commit is contained in:
Slavi Pantaleev 2025-04-29 10:31:12 +03:00
parent 14aef55573
commit a59383fcc7
2 changed files with 3 additions and 1 deletions

View File

@ -176,8 +176,9 @@ matrix_debian_arch: "{{ 'armhf' if matrix_architecture == 'arm32' else matrix_ar
matrix_container_global_registry_prefix_override: ""
matrix_user_username: "matrix"
matrix_user_groupname: "matrix"
matrix_user_system: true
matrix_user_groupname: "matrix"
matrix_group_system: true
# By default, the playbook creates the user (`matrix_user_username`)
# and group (`matrix_user_groupname`) with a random ID.

View File

@ -10,6 +10,7 @@
name: "{{ matrix_user_groupname }}"
gid: "{{ omit if matrix_user_gid is none else matrix_user_gid }}"
state: present
system: "{{ matrix_group_system }}"
register: matrix_group
- name: Ensure Matrix user is created