.. _user: user `````````````````````````````` .. versionadded:: 0.2 Manage user accounts and user attributes. .. raw:: html
parameter | required | default | choices | comments |
---|---|---|---|---|
comment | no | Optionally sets the description (aka GECOS) of user account. | ||
shell | no | Optionally set the user's shell. | ||
force | no | no |
|
When used with state=absent, behavior is as with userdel --force. |
name | yes | Name of the user to create, remove or modify. | ||
createhome | no | yes |
|
Unless set to no, a home directory will be made for the user when the account is created. |
system | no | no |
|
When creating an account, setting this to yes makes the user a system account. This setting cannot be changed on existing users. |
remove | no | no |
|
When used with state=absent, behavior is as with userdel --remove. |
state | no | present |
|
Whether the account should exist. When absent, removes the user account. |
groups | no | Puts the user in this comma-delimited list of groups. | ||
home | no | Optionally set the user's home directory. | ||
group | no | Optionally sets the user's primary group (takes a group name). | ||
password | no | Optionally set the user's password to this crypted value. See the user example in the github examples directory for what this looks like in a playbook. | ||
append | no | If yes, will only add groups, not set them to just the list in groups. | ||
uid | no | Optionally sets the UID of the user. |