community.general/lib/ansible
elotje 8c7ceaab81 Unprivileged become on HP-UX/UNIX (Fixes #16249) (#16275)
Problem: When setting the file permissions on the remote server for
unprivileged users ansible expects that a chown will fail for unprivileged
users. For some systems (e.g. HP-UX) this is not the case.

Solution: Change the order how ansible sets the remote permissions.
* If the remote_user sudo's to an unprivileged user then we attempt to
  grant the unprivileged user access via file system acls.
* If granting file system acls fails we try to change the owner of the
  file with chown which only works in case the remote_user is privileged
  or the remote systems allows chown calls by unprivileged users (e.g.
  HP-UX)
* If the chown fails we can set the file to be world readable so that
  the second unprivileged user can read the file. Since this could allow
  other users to get access to private information we only do this
  ansible is configured with "allow_world_readable_tmpfiles" in the
  ansible.cfg
2016-06-15 08:16:24 -07:00
..
cli minor optimization 2016-06-03 09:56:56 -04:00
compat Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version. 2015-10-16 08:21:28 -07:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors Add options to make includes 'static' 2016-03-24 10:12:51 -04:00
executor Remove unneeded pass 2016-06-13 09:43:51 -07:00
galaxy much more fine grained error messages 2016-06-06 11:48:16 -04:00
inventory There can be only one localhost 2016-06-08 13:03:52 -05:00
module_utils Make sure we don't end up with an empty PYTHONPATH (#16240) 2016-06-15 07:02:56 -07:00
modules bump core submodule ref 2016-06-14 11:37:22 -07:00
new_inventory fix some warning of undefined name. 2015-10-09 12:43:42 +08:00
parsing Catch DistributionNotFound when pycrypto is absent (#15731) 2016-05-19 11:39:34 -07:00
playbook raw should not use default executable (#16085) 2016-06-10 11:37:58 -04:00
plugins Unprivileged become on HP-UX/UNIX (Fixes #16249) (#16275) 2016-06-15 08:16:24 -07:00
template moved last utils.debug to display.debug 2016-04-08 16:00:36 -04:00
utils Typo fix: Kuraotmi -> Kuratomi 2016-06-06 15:24:44 +02:00
vars Fix hostvars lookup of locahost based on 5f1bbb4 2016-06-08 14:14:02 -05:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py removed duplicate constants setting 2016-06-14 13:15:47 -04:00
release.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
test-requirements.txt Making the switch to v2 2015-05-03 21:47:26 -05:00