Просмотр исходного кода

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.
pull/4285/head
Slavi Pantaleev 10 месяцев назад
Родитель
Сommit
a59383fcc7
2 измененных файлов: 3 добавлений и 1 удалений
  1. +2
    -1
      roles/custom/matrix-base/defaults/main.yml
  2. +1
    -0
      roles/custom/matrix-base/tasks/setup_matrix_user.yml

+ 2
- 1
roles/custom/matrix-base/defaults/main.yml Просмотреть файл

@@ -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.


+ 1
- 0
roles/custom/matrix-base/tasks/setup_matrix_user.yml Просмотреть файл

@@ -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


Загрузка…
Отмена
Сохранить