You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
784 B
28 lines
784 B
5 years ago
|
---
|
||
|
|
||
|
- name: Ensure Matrix group is created
|
||
2 years ago
|
ansible.builtin.group:
|
||
5 years ago
|
name: "{{ matrix_user_groupname }}"
|
||
4 years ago
|
gid: "{{ omit if matrix_user_gid is none else matrix_user_gid }}"
|
||
5 years ago
|
state: present
|
||
|
register: matrix_group
|
||
|
|
||
|
- name: Set Matrix Group GID Variable
|
||
2 years ago
|
ansible.builtin.set_fact:
|
||
5 years ago
|
matrix_user_gid: "{{ matrix_group.gid }}"
|
||
|
|
||
|
- name: Ensure Matrix user is created
|
||
2 years ago
|
ansible.builtin.user:
|
||
5 years ago
|
name: "{{ matrix_user_username }}"
|
||
4 years ago
|
uid: "{{ omit if matrix_user_uid is none else matrix_user_uid }}"
|
||
5 years ago
|
state: present
|
||
5 years ago
|
group: "{{ matrix_user_groupname }}"
|
||
4 years ago
|
home: "{{ matrix_base_data_path }}"
|
||
3 years ago
|
create_home: false
|
||
|
system: true
|
||
5 years ago
|
register: matrix_user
|
||
|
|
||
|
- name: Set Matrix Group UID Variable
|
||
2 years ago
|
ansible.builtin.set_fact:
|
||
5 years ago
|
matrix_user_uid: "{{ matrix_user.uid }}"
|