Skip to content

Commit 985f069

Browse files
author
Colin Hoglund
committed
specify gid for groups_to_create
1 parent eae5079 commit 985f069

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

defaults/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,10 @@ users_create_homedirs: true
1313
# Lists of users to create and delete
1414
users: []
1515
users_deleted: []
16+
17+
# List of groups to create
18+
# Example:
19+
# groups_to_create:
20+
# - name: developers
21+
# gid: 10000
1622
groups_to_create: []

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- name: Creating groups
3-
group: name="{{item}}"
3+
group: name="{{item.name}}" gid="{{item.gid}}"
44
with_items: "{{groups_to_create}}"
55
tags: ['users','groups','configuration']
66

0 commit comments

Comments
 (0)