- 23 Jul, 2012 1 commit
-
-
Stephen Fromm committed
-
- 14 Jul, 2012 1 commit
-
-
Change the way we do with_items to make them happen next to each other in runner, which eliminates the problem of with_items and vars_files sometimes not playing nice with each other. (Also a fix for the user module error handling when the user is not present at the time of the return. This can only really be caused by multiple ansible executions).
Michael DeHaan committed
-
- 11 Jul, 2012 1 commit
-
-
Added yes/no to user options instead of False comparison for force and remove options for user module
Jeremy Smitherman committed
-
- 10 Jul, 2012 3 commits
-
-
Stephen Fromm committed
-
The user module now returns the output, both stdout and stderr, from useradd, usermod, and userdel. This should help debug cases why one of those commands fail. In addition, the user module will now call fail_json() when the attempted command failed so as to properly communicate a failure in a playbook.
Stephen Fromm committed -
Seth Vidal committed
-
- 15 May, 2012 1 commit
-
-
I think when we stopped using stderr for debugging modules because paramiko didn't like it, many modules used the idiom of defining a debug function that used standard error. The def's and calls were removed. This looks like a stray debug() that didn't get removed and didn't show up unless you alter a user's groups. If it's hit, 'user' fails with a global undefined function error.
Brad Olson committed
-
- 08 May, 2012 1 commit
-
-
Resolves issue #333. If spwd is not available, the password will be set regardless.
Stephen Fromm committed
-
- 09 May, 2012 1 commit
-
-
The ohai and facter modules use /usr/bin/logger to log the fact that they have been invoked. I added 'import os' to the ping module so that it could have the same syslog statements as the other modules. I separated the condensed: shlex.split(open(argfile, 'r').read()) into two separate statements similar to the other modules.
Stephen Fromm committed
-
- 07 May, 2012 3 commits
-
-
Brendan Beveridge committed
-
This adds some logic when usings groups possibly in combination with append if just specifying groups and the current groups do not match the list set groups if specifying groups with append and any group thats not in the current groups set groups with -a
Brendan Beveridge committed -
Code was adding '-a' even when the user was already in the desired groups causing usermod to fail since there was no '-G' option. This is duplicate code (3 lines) from the 'group' section, so could be improved, but it works.
Peter Sankauskas committed
-
- 02 May, 2012 1 commit
-
-
Groups are not necessarily returned in the defined order, especially when the user already existed before ansible started managing the system.
Jeroen Hoekx committed
-
- 01 May, 2012 1 commit
-
-
Creates system accounts/groups; corresponds to the '-r' option for {user,group}add. The option is only honored when users/groups are added, not when modified.
Daniel Néri committed
-
- 27 Apr, 2012 1 commit
-
-
treated -D as a way to show stderr, and make sure modules don't include things on stderr. Update docs and test module script to come into line.
Michael DeHaan committed
-
- 28 Mar, 2012 1 commit
-
-
This adds two options to the user module: groups and append. groups is a comma-delimited list of supplementary groups a user should belong to. If a user is currently a member of a group not listed in groups, the user will be removed from it. To change this behavior, use append=yes. This will append the user to the list of supplementary groups and *not* remove the user from unlisted groups.
Stephen Fromm committed
-
- 27 Mar, 2012 1 commit
-
-
This changes the gid option to group. One may provide a primary group as either a gid or a name. The module will then check to verify that the group already exists. If the group does not already exist, the module will fail.
Stephen Fromm committed
-
- 22 Mar, 2012 1 commit
-
-
This relies on useradd, usermod, and userdel utilities on the system. The argument name is required; if state is not provided, present is assumed. Other options supported for creating or modifying an existing account: uid, gid, comment, home, shell, and password. If managing the password, it must already be encrypted. When creating an account, you can also provide the argument createhome to control whether the home directory is created. Arguments supported for deleting an account are: force (remove account even if user is logged in) and remove (remove home directory).
Stephen Fromm committed
-