|
[root@node1 ansible]# ansible-doc -s user
less 436
Copyright (C) 1984-2009 Mark Nudelman
less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Homepage: http://www.greenwoodsoftware.com/less
- name: M a n a g e u s e r a c c o u n t s
action: user
append # If `yes', will only add groups, not set them to just the list in `groups'.
comment # Optionally sets the description (aka `GECOS') of user account.
createhome # Unless set to `no', a home directory will be made for the user when the account is created or if the home directory does not exist.
expires # An expiry time for the user in epoch, it will be ignored on platforms that do not support this. Currently supported on Linux and FreeBSD
force # When used with `state=absent', behavior is as with `userdel --force'.
generate_ssh_key # Whether to generate a SSH key for the user in question. This will *not* overwrite an existing SSH key.
group # Optionally sets the user's primary group (takes a group name).
groups # Puts the user in this comma-delimited list of groups. When set to the empty string ('groups='), the user is removed from all groups exce
home # Optionally set the user's home directory.
login_class # Optionally sets the user's login class for FreeBSD, OpenBSD and NetBSD systems.
move_home # If set to `yes' when used with `home=', attempt to move the user's home directory to the specified directory if it isn't there already.
name= # Name of the user to create, remove or modify.
non_unique # Optionally when used with the -u option, this option allows to change the user ID to a non-unique value.
password # Optionally set the user's password to this crypted value. See the user example in the github examples directory for what this looks lik
remove # When used with `state=absent', behavior is as with `userdel --remove'.
shell # Optionally set the user's shell.
ssh_key_bits # Optionally specify number of bits in SSH key to create.
ssh_key_comment # Optionally define the comment for the SSH key.
ssh_key_file # Optionally specify the SSH key filename. If this is a relative filename then it will be relative to the user's home directory.
ssh_key_passphrase # Set a passphrase for the SSH key. If no passphrase is provided, the SSH key will default to having no passphrase.
ssh_key_type # Optionally specify the type of SSH key to generate. Available SSH key types will depend on implementation present on target host.
state # Whether the account should exist or not, taking action if the state is different from what is stated.
system # When creating an account, setting this to `yes' makes the user a system account. This setting cannot be changed on existing users.
uid # Optionally sets the `UID' of the user.
update_password # `always' will update passwords if they differ. `on_create' will only set the password for newly created users.
[root@node1 ansible]# |
|
|