diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index b926caf827..c7c439aefd 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -817,6 +817,10 @@ class Runner(object): port, complex_args=complex_args ) + + if 'stdout' in result.result and 'stdout_lines' not in result.result: + result.result['stdout_lines'] = result.result['stdout'].splitlines() + results.append(result.result) if result.comm_ok == False: all_comm_ok = False