mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2024-11-17 20:54:57 +00:00
Combine matrix user/group set_fact calls into one
This commit is contained in:
parent
4d881477a3
commit
787a82d6e8
@ -7,10 +7,6 @@
|
|||||||
state: present
|
state: present
|
||||||
register: matrix_group
|
register: matrix_group
|
||||||
|
|
||||||
- name: Set Matrix Group GID Variable
|
|
||||||
ansible.builtin.set_fact:
|
|
||||||
matrix_user_gid: "{{ matrix_group.gid }}"
|
|
||||||
|
|
||||||
- name: Ensure Matrix user is created
|
- name: Ensure Matrix user is created
|
||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: "{{ matrix_user_username }}"
|
name: "{{ matrix_user_username }}"
|
||||||
@ -22,6 +18,7 @@
|
|||||||
system: true
|
system: true
|
||||||
register: matrix_user
|
register: matrix_user
|
||||||
|
|
||||||
- name: Set Matrix Group UID Variable
|
- name: Initialize matrix_user_uid and matrix_user_gid
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
matrix_user_uid: "{{ matrix_user.uid }}"
|
matrix_user_uid: "{{ matrix_user.uid }}"
|
||||||
|
matrix_user_gid: "{{ matrix_group.gid }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user