community.general/lib/ansible/plugins/action
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
..
__init__.py Unprivileged become on HP-UX/UNIX (Fixes #16249) (#16275) 2016-06-15 08:16:24 -07:00
add_host.py allow for non standard hostnames 2015-12-21 13:42:34 -05:00
assemble.py Revert "Add prefixing and suffixing fuctionality to assemble module" (#16084) 2016-06-01 09:17:10 -04:00
assert.py Two fixes to action plugins 2015-10-22 16:07:26 -07:00
async.py Move binary module detection into executor/module_common.py 2016-05-12 12:25:09 -05:00
copy.py Fix the copy action to not send the content as a param. (#16127) 2016-06-03 12:32:15 -07:00
debug.py When var name is the same as var content, try to template it before reporting that var is not defined. (#13629) 2016-05-01 06:42:09 -07:00
eos_template.py initial add of action plugin eos_template 2016-02-01 11:51:52 -05:00
fail.py Two fixes to action plugins 2015-10-22 16:07:26 -07:00
fetch.py Fix unicode handling in connection plugins. 2016-03-10 09:04:32 -08:00
group_by.py Do not set 'changed' to True when using group_by 2016-01-04 17:46:40 +01:00
include_vars.py Two fixes to action plugins 2015-10-22 16:07:26 -07:00
ios_template.py initial add of action plugin ios_template 2016-02-01 11:54:02 -05:00
iosxr_template.py adds new action plugin iosxr_template 2016-02-12 17:08:21 -05:00
junos_template.py updates action plugin junos_template to guess file format 2016-04-24 11:41:00 -04:00
net_template.py net_template.py: Fix jinja2 template file search path (#15134) 2016-05-16 10:05:08 -04:00
normal.py better module error handling 2015-12-22 23:01:56 -05:00
nxos_template.py initial add of action plugin nxos_template 2016-02-01 11:52:50 -05:00
ops_template.py updates the ops_template plugin action backup key 2016-02-28 23:40:05 -05:00
package.py updated package to use minimal fact gathering 2016-06-03 09:54:59 -04:00
patch.py Ensure action plugins remove tmp dirs created (#15501) 2016-04-20 13:39:12 -04:00
pause.py avoid issues when stdin is a closed file 2016-03-02 11:58:16 -05:00
raw.py raw should not use default executable (#16085) 2016-06-10 11:37:58 -04:00
script.py raw should not use default executable (#16085) 2016-06-10 11:37:58 -04:00
service.py fix issues when state is not supplied 2016-06-07 10:29:24 -04:00
set_fact.py Two fixes to action plugins 2015-10-22 16:07:26 -07:00
synchronize.py Add further commentary about synchronize process_remote. (#16292) 2016-06-14 20:20:19 -04:00
template.py Ensure action plugins remove tmp dirs created (#15501) 2016-04-20 13:39:12 -04:00
unarchive.py Fix unarchive failures when the destination is a symlink to a directory (#15999) 2016-05-26 14:47:11 -07:00
win_copy.py Two fixes to action plugins 2015-10-22 16:07:26 -07:00
win_reboot.py add win_reboot action 2016-04-11 14:48:39 -07:00
win_template.py Two fixes to action plugins 2015-10-22 16:07:26 -07:00