mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-07-08 19:49:09 +00:00
Update user module to support group name
This changes the gid option to group. One may provide a primary group as either a gid or a name. The module will then check to verify that the group already exists. If the group does not already exist, the module will fail.
This commit is contained in:
parent
37f599efc3
commit
8592b3b40d
2 changed files with 39 additions and 12 deletions
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
# Walk through account creation, modification, and deletion
|
||||
- name: test basic user account creation
|
||||
action: user name=tset comment=TsetUser gid=100 shell=/sbin/nologin createhome=no
|
||||
action: user name=tset comment=TsetUser group=100 shell=/sbin/nologin createhome=no
|
||||
|
||||
# the following is just a simple example of how you don't have to include
|
||||
# the 'name' element for each task
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue