macbeth76
bb2fc14865
Update user.py
...
M in date format is minutes. m is for months.
10 years ago
Keith Johnson
7dc1e77263
Make link clickable
10 years ago
James Cammarata
4558cb71f4
Merge branch 'osx_user_fix' of https://github.com/bambou42/ansible-modules-core into bambou42-osx_user_fix
...
Includes commits for:
* Don't return change if the password is not set
* Set the group to nogroup if none is specified
* Set an uid if none is specified
* Test if SHADOWFILE is set (for Darwin)
* remove unused uid
10 years ago
Carlo Mandelli
0029c960e4
Added HP-UX subclass
10 years ago
Oleg A. Mamontov
fa19753707
On FreeBSD apply 'login_class' only if there is real change.
10 years ago
Stefan J. Betz
dc470cc91f
Create SSH Keys always after creating $HOME
10 years ago
Sébastien Gross
1555cfeea2
Add basic support for OS X (Darwin) user management.
10 years ago
Paul Geraghty
b42b0f49b9
Correct grammar of comment relating to example
10 years ago
Brian Coca
543c45a15f
implemented account expiration as flag and not state, removed from unsupported platforms
10 years ago
Brian Coca
fc1045a1ee
Merge pull request #41 from billwanjohi/add_expired_state
...
user: add expired state
10 years ago
Brian Coca
d80e7438a6
Merge pull request #37 from mscherer/fix_old_7420
...
Add hostname to generated user SSH key comment
10 years ago
Michael Scherer
826d313aad
Do not use echo shell builtin for password
...
Using \t in a password may result in a different password
being set :
$ echo 'a\ta'
a a
Problem report originally found by Pilou-
( https://github.com/ansible/ansible-modules-extras/pull/198 )
10 years ago
Toshio Kuratomi
2973bac72f
Clarify documented behaviour of user module's ssh_key_file parameter
...
Fixes #9873
10 years ago
Peter Oliver
18c429d016
Fix appending to a user's group on Solaris
...
Without this change, you get:
AttributeError: 'set' object has no attribute 'extend'
Tested on a Solaris 11.2 client with the included Python 2.6.8.
10 years ago
zitterbacke
2e88582165
re-enable AIX password setting
...
the AIX class uses a unsafe shell for setting the user password (containing a pipe in the command). This patch adopts to the new behavior of module_utils/basic.py (since somewhere around 1.7).
besides it changes the qoutes for the echo command from double to single, because password-hashes contain $-signs and one would not have this variables expanded.
10 years ago
Toshio Kuratomi
e1f90635af
Don't traceback if a gid is specified instead of a group name
...
Fixes https://github.com/ansible/ansible/issues/9796
10 years ago
Jonathan Mainguy
8b8008569f
fixes user module for rhel5 by using -n instead of -N, all other distros will still use -N
10 years ago
billwanjohi
ff36edbb11
user: add expired state
...
ported from
https://github.com/ansible/ansible/pull/6303
It's very useful and routine to disable a *nix user.
I implemented expired instead of locked because this prevents any use of
the account, safer than just preventing password-based authentication.
I have tests [1], but since none of the suite came along with the core
modules, I'm unsure how to submit them.
[1] https://github.com/billwanjohi/ansible/blob/add_locked_state/test/integration/roles/test_user/tasks/main.yml
10 years ago
Michael Scherer
37d9903169
Add hostname to generated user SSH key comment
...
The default is not very useful to sort between different
keys and user. Adding the hostname in the comment permit to later
sort them if you start to reuse the key and set them in different
servers. See https://github.com/ansible/ansible/pull/7420
for the rational.
10 years ago
Michael DeHaan
c8e1a2077e
file extensions!
10 years ago