Pass tempdir via module args instead of the environment

This commit is contained in:
Toshio Kuratomi
2018-01-22 17:39:25 -08:00
parent 06dc840b51
commit ca8e4c806a
2 changed files with 4 additions and 3 deletions

View File

@@ -631,6 +631,9 @@ class ActionBase(with_metaclass(ABCMeta, object)):
# make sure all commands use the designated shell executable
module_args['_ansible_shell_executable'] = self._play_context.executable
# make sure all commands use the designated temporary directory
module_args['_ansible_tempdir'] = self._connection._shell.tempdir
def _update_connection_options(self, options, variables=None):
''' ensures connections have the appropriate information '''
update = {}