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
2015-04-06 13:05:11 -05:00
Carlo Mandelli
0029c960e4
Added HP-UX subclass
2015-02-27 18:32:36 +01:00
Oleg A. Mamontov
fa19753707
On FreeBSD apply 'login_class' only if there is real change.
2015-02-27 14:41:35 +03:00
Stefan J. Betz
dc470cc91f
Create SSH Keys always after creating $HOME
2015-02-21 12:00:47 +01:00
Sébastien Gross
1555cfeea2
Add basic support for OS X (Darwin) user management.
2015-02-13 10:14:37 +01:00
Paul Geraghty
b42b0f49b9
Correct grammar of comment relating to example
2015-02-11 02:18:16 +00:00
Brian Coca
543c45a15f
implemented account expiration as flag and not state, removed from unsupported platforms
2015-01-28 09:22:32 -05:00
Brian Coca
fc1045a1ee
Merge pull request #41 from billwanjohi/add_expired_state
...
user: add expired state
2015-01-27 18:29:45 -05:00
Brian Coca
d80e7438a6
Merge pull request #37 from mscherer/fix_old_7420
...
Add hostname to generated user SSH key comment
2015-01-21 18:16:05 -05:00
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 )
2015-01-12 19:30:07 +01:00
Toshio Kuratomi
2973bac72f
Clarify documented behaviour of user module's ssh_key_file parameter
...
Fixes #9873
2015-01-07 08:46:42 -08:00
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.
2014-12-21 20:05:17 +00:00
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.
2014-12-16 15:10:00 +01:00
Toshio Kuratomi
e1f90635af
Don't traceback if a gid is specified instead of a group name
...
Fixes https://github.com/ansible/ansible/issues/9796
2014-12-12 12:08:03 -08:00
Jonathan Mainguy
8b8008569f
fixes user module for rhel5 by using -n instead of -N, all other distros will still use -N
2014-11-17 13:26:08 -05:00
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
2014-09-29 22:42:28 +00:00
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.
2014-09-29 18:07:41 -04:00
Michael DeHaan
c8e1a2077e
file extensions!
2014-09-26 10:37:56 -04:00