1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible/modules
Jordan Borean 8bdd04c147 Fix remote_tmp when become with non admin user (#42396)
* Fix tmpdir on non root become

 - also avoid exception if tmpdir and remote_tmp are None
 - give 'None' on deescalation so tempfile will fallback to it's default behaviour
   and use system dirs
 - fix issue with bad tempdir (not existing/not createable/not writeable)
   i.e nobody and ~/.ansible/tmp
 - added tests for blockfile case

* Revert "Temporarily revert c119d54"

This reverts commit 5c614a59a6.

* changes based on PR feedback and changelog fragment

* changes based on the review

* Fix tmpdir when makedirs failed so we just use the system tmp

* Let missing remote_tmp fail

If remote_tmp is missing then there's something more basic wrong in the
communication from the controller to the module-side.  It's better to
be alerted in this case than to silently ignore it.

jborean and I have independently checked what happens if the user sets
ansible_remote_tmp to empty string and !!null and both cases work fine.
(null is turned into a default value controller-side.  empty string
triggers the warning because it is probably not a directory that the
become user is able to use).
2018-07-06 10:49:19 -07:00
..
cloud Update docker package version (#42394) 2018-07-06 10:48:24 -04:00
clustering k8s_facts trivially supports check_mode (#42335) 2018-07-05 07:53:23 -04:00
commands Added executable parameter to the script module (#36969) 2018-05-25 14:40:48 -05:00
crypto new provider: ownca (#35840) 2018-06-21 12:41:00 +05:30
database elasticsearch_plugin - Show STDERR on module failures. (#41954) 2018-06-29 17:28:17 -04:00
files Fix remote_tmp when become with non admin user (#42396) 2018-07-06 10:49:19 -07:00
identity FreeIPA: ipa_vault module to manage idm secure vault resource (#41902) 2018-07-05 10:16:35 +05:30
inventory Fix typo in group_by module (#41627) 2018-06-18 15:33:08 +05:30
messaging rabbitmq_user: Add update_password parameter (#36280) 2018-05-23 14:34:46 -05:00
monitoring Update zabbix_screen.py limit screen columns (#41487) 2018-06-21 07:36:18 -04:00
net_tools Fix remote_tmp when become with non admin user (#42396) 2018-07-06 10:49:19 -07:00
network Add querying all bindings (#42366) 2018-07-06 13:32:39 +02:00
notification Fix for starttls connections for notification mail module (#42381) 2018-07-05 19:09:42 -04:00
packaging Fix remote_tmp when become with non admin user (#42396) 2018-07-06 10:49:19 -07:00
remote_management UCS Server UUID pool modules and integration tests (#41743) 2018-06-29 15:49:47 +02:00
source_control Make use of a better python module for gitlab_group (#40764) 2018-05-29 02:43:40 -04:00
storage Fix API call to get ActiveCluster information and add (#41744) 2018-06-22 10:46:02 -05:00
system pamd module regression fix (#42025) 2018-06-29 16:34:20 -05:00
utilities Update pause.py (#42297) 2018-07-04 16:48:55 +05:30
web_infrastructure Fix error message when using the params option (#42305) 2018-07-04 21:08:25 +05:30
windows Correct typo in win_domain_computer doc (#42123) 2018-06-29 23:05:07 +02:00
__init__.py