File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ The following attributes are required for each user:
28
28
* name - The full name of the user (gecos field)
29
29
* uid - The numeric user id for the user. This is required for uid consistency
30
30
across systems.
31
+ * gid - The numeric group id for the group (optional). Otherwise, the
32
+ uid will be used
31
33
* password - If a hash is provided then that will be used, but otherwise the
32
34
account will be locked
33
35
* groups - a list of supplementary groups for the user.
Original file line number Diff line number Diff line change 5
5
tags : ['users','groups','configuration']
6
6
7
7
- name : Per-user group creation
8
- group : name="{{item.username}}" gid="{{item.uid}}"
8
+ group : name="{{item.username}}"
9
+ gid="{{item.gid if item.gid is defined else item.uid}}"
9
10
with_items : users
10
11
when : users_create_per_user_group
11
12
tags : ['users','configuration']
You can’t perform that action at this time.
0 commit comments