I try to add a new user on Debian Lenny :
- name: Create user jbox-admin
action: user name=jbox-admin home=/data/www-admin/jbox createhome=no shell=/bin/bash
tags: install_jbox_admin
I get this out :
failed: [176.31.85.177] => {“failed”: true, “item”: “”, “msg”: “Usage: useradd [options] LOGIN\n\nOptions:\n -b, --base-dir BASE_DIR base directory for the new user account\n home directory\n -c, --comment COMMENT set the GECOS field for the new user account\n -d, --home-dir HOME_DIR home directory for the new user account\n -D, --defaults print or save modified default useradd\n configuration\n -e, --expiredate EXPIRE_DATE set account expiration date to EXPIRE_DATE\n -f, --inactive INACTIVE set password inactive after expiration\n to INACTIVE\n -g, --gid GROUP force use GROUP for the new user account\n -G, --groups GROUPS list of supplementary groups for the new\n user account\n -h, --help display this help message and exit\n -k, --skel SKEL_DIR specify an alternative skel directory\n -K, --key KEY=VALUE overrides /etc/login.defs defaults\n -l, do not add the user to the lastlog and\n faillog databases\n -m, --create-home create home directory for the new user\n account\n -N, --no-user-group do not create a group with the same name as\n the user\n -o, --non-unique allow create user with duplicate\n (non-unique) UID\n -p, --password PASSWORD use encrypted password for the new user\n account\n -r, --system create a system account\n -s, --shell SHELL the login shell for the new user account\n -u, --uid UID force use the UID for the new user account\n -U, --user-group create a group with the same name as the user\n\n”, “name”: “jbox-admin”, “rc”: 2}
I have no error with the same task under Debian Squeeze, and I don’t know if it was working with Lenny before 0.8
Let me know if you need more informations
Thank you and thanks for your work