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:
Stephen Fromm
2012-03-27 13:43:36 -07:00
committed by Michael DeHaan
parent 37f599efc3
commit 8592b3b40d
2 changed files with 39 additions and 12 deletions

View File

@@ -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