From 535ebc4c56a4afe3be67fcba6947d59fd25c9014 Mon Sep 17 00:00:00 2001 From: Jonathan Mainguy Date: Tue, 5 Aug 2014 15:18:49 -0400 Subject: [PATCH] Fixes 8362, returns stderr if No space left on device --- lib/ansible/runner/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index db3e308e05f..3bd1fb22b50 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -1090,6 +1090,8 @@ class Runner(object): output = 'SSH encountered an unknown error. The output was:\n%s' % (result['stdout']+result['stderr']) else: output = 'SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue' + elif 'No space left on device' in result['stderr']: + output = result['stderr'] else: output = 'Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote temp path in ansible.cfg to a path rooted in "/tmp". Failed command was: %s, exited with result %d' % (cmd, result['rc']) if 'stdout' in result and result['stdout'] != '':