From c9b01febb3084deecfa84e9ed7b2b22e03ab6d0f Mon Sep 17 00:00:00 2001 From: jeromew Date: Tue, 7 Jan 2014 20:56:12 +0000 Subject: [PATCH] Make sure 'tmp' is in the remote tmp dirname to ensure correct cleanup --- lib/ansible/runner/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index dabd8cd9545..bea8e66e450 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -868,7 +868,7 @@ class Runner(object): def _make_tmp_path(self, conn): ''' make and return a temporary path on a remote box ''' - basefile = 'ansible-%s-%s' % (time.time(), random.randint(0, 2**48)) + basefile = 'ansible-tmp-%s-%s' % (time.time(), random.randint(0, 2**48)) basetmp = os.path.join(C.DEFAULT_REMOTE_TMP, basefile) if self.sudo and self.sudo_user != 'root' and basetmp.startswith('$HOME'): basetmp = os.path.join('/tmp', basefile)