diff options
Diffstat (limited to 'lib/ansible/runner/__init__.py')
-rw-r--r-- | lib/ansible/runner/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index f3e67653ae..27ad7829d8 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -172,6 +172,10 @@ class Runner(object): def _delete_remote_files(self, conn, files): ''' deletes one or more remote files ''' + if os.getenv("ANSIBLE_KEEP_REMOTE_FILES","0") == "1": + # ability to turn off temp file deletion for debug purposes + return + if type(files) == str: files = [ files ] for filename in files: |