community.general/lib/ansible/plugins
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
..
action Fix remote_tmp when become with non admin user (#42396) 2018-07-06 10:49:19 -07:00
cache Do not try to import simplejson in jsonfile.py (#40983) 2018-06-01 11:24:57 -07:00
callback callback/grafana_annotations: define validate_grafana_certs type as bool (#42318) 2018-07-05 15:49:58 +10:00
cliconf Fix typo in cliconf pluign (#42399) 2018-07-06 12:18:24 +05:30
connection Update eos, ios, vyos cliconf plugin (#42300) 2018-07-04 19:45:21 +05:30
filter Add items2dict filter that is the reverse of dict2items (#42071) 2018-06-29 10:47:07 -05:00
httpapi New base class for HttpApi plugins (#41915) 2018-06-25 15:48:12 -04:00
inventory inventory plugin docs (#42022) 2018-07-05 17:30:46 -04:00
lookup Udate ini.py with corrected intended use (#42232) 2018-07-03 08:48:43 -04:00
netconf Fix junos_config confirm commit issue (#41527) 2018-06-29 15:09:55 +05:30
shell runas + async - get working on older hosts (#41772) 2018-06-26 14:40:49 +10:00
strategy Use inventory.get_host instead of direct access to inventory.hosts (#41860) 2018-06-25 15:06:32 -05:00
terminal fix handling of ># ending prompts for sros (#41382) 2018-06-12 11:37:08 -04:00
test Deprecate tests used as filters (#32361) 2017-11-27 17:58:08 -05:00
vars Allow loading dirs from role defaults/vars (#36357) 2018-04-10 17:14:38 -04:00
__init__.py options should be settable multiple times 2018-06-26 10:23:00 -04:00
loader.py HTTP(S) API connection plugin (#39224) 2018-05-17 18:47:15 -04:00