community.general/lib/ansible
Toshio Kuratomi 02e3f4b526 Fix for atomic_move on RHEL5
When becoming an unprivileged user using non-sudo on a platform where
getlogin() failed in our situation we were not able to detect that the
user had switched.  This meant that all of our logic to use move vs copy
if the user had switched was attempting the wrong thing.  This change
tries the to do the right thing but then falls back to an acceptable
second choice if it doesn't work.

The bug wasn't easily detected because:
* sudo was not affected because sudo records that the user's have been
  switched so we were able to detect that.
* getlogin() works on most platforms.  RHEL5 with python-2.4 seems to be
  the only platform we still care about where getlogin() fails for this
  case.
* It had to be becoming an unprivileged user.  When becoming
  a privileged user, the user would be able to successfully perform the
  best case tasks.
2017-01-04 14:08:19 -08:00
..
cli Correctly set loader path when using list tags/tasks 2016-12-21 21:01:02 -06:00
compat Fix role completion detection problem 2017-01-03 14:32:44 -06:00
config
errors adds feature to all modules to be run locally (#18763) 2016-12-15 15:47:29 -05:00
executor Fixing an iteration bug introduced by fed079e4 2017-01-04 10:34:06 -06:00
galaxy For container enabled role, display warning only when not ANSIBLE_CONTAINER (#18717) 2016-12-02 10:08:10 -05:00
inventory warn when examined group_vars is not dir 2016-12-22 12:39:31 -05:00
module_utils Fix for atomic_move on RHEL5 2017-01-04 14:08:19 -08:00
modules Issue #19575: Adding Dest Param to win_uri (#19577) 2017-01-04 13:33:47 -08:00
parsing Add a encode() to AnsibleVaultEncryptedUnicode (#19840) 2017-01-04 12:17:19 -05:00
playbook Removing unused files in playbook/ directory 2017-01-04 15:17:15 -06:00
plugins adds new feature to network_cli (#19848) 2017-01-03 22:33:02 -05:00
template Wrap unhandled errors from lookups in an AnsibleError 2016-12-21 11:48:18 -06:00
utils Contributing new module to manage HUAWEI data center CloudEngine switch. (#19793) 2017-01-03 22:30:59 -05:00
vars Display proper error on group_vars syntax error 2016-12-16 21:13:41 -05:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py Transform config values to text immediately when they enter ansible 2017-01-04 14:06:18 -08:00
release.py Bumping devel version to 2.3.0 2016-10-03 11:46:31 -05:00
test-requirements.txt