Using /Users/ssbarnea/.ansible.cfg as config file
Executing playbook sample-a.yml

- test output -
some command that returns more than one line of output...
Tuesday 25 September 2018  21:02:44 +0100 (0:00:01.864)       0:00:01.864 ***** 
  localhost failed: {
    "changed": true, 
    "cmd": "ls -la && exit 1", 
    "delta": "0:00:00.017013", 
    "end": "2018-09-25 21:02:51.914848", 
    "msg": "non-zero return code", 
    "rc": 1, 
    "start": "2018-09-25 21:02:51.897835", 
    "stderr": "", 
    "stderr_lines": [], 
    "stdout": "total 48\ndrwxr-xr-x    9 ssbarnea  staff   288 Sep 23 18:21 .\ndrwxr-xr-x  130 ssbarnea  staff  4160 Sep 23 17:50 ..\n-rw-r--r--@   1 ssbarnea  staff  8196 Sep 25 20:26 .DS_Store\ndrwxr-xr-x   13 ssbarnea  staff   416 Sep 25 20:59 .git\n-rw-r--r--    1 ssbarnea  staff     0 Sep 23 17:50 .gitignore\n-rw-r--r--    1 ssbarnea  staff   174 Sep 23 18:23 Makefile\ndrwxr-xr-x    9 ssbarnea  staff   288 Sep 25 21:02 output\n-rwxr-xr-x    1 ssbarnea  staff   361 Sep 25 21:02 sample-a.yml\n-rwxr-xr-x    1 ssbarnea  staff   786 Sep 23 18:34 test-ansible-output", 
    "stdout_lines": [
        "total 48", 
        "drwxr-xr-x    9 ssbarnea  staff   288 Sep 23 18:21 .", 
        "drwxr-xr-x  130 ssbarnea  staff  4160 Sep 23 17:50 ..", 
        "-rw-r--r--@   1 ssbarnea  staff  8196 Sep 25 20:26 .DS_Store", 
        "drwxr-xr-x   13 ssbarnea  staff   416 Sep 25 20:59 .git", 
        "-rw-r--r--    1 ssbarnea  staff     0 Sep 23 17:50 .gitignore", 
        "-rw-r--r--    1 ssbarnea  staff   174 Sep 23 18:23 Makefile", 
        "drwxr-xr-x    9 ssbarnea  staff   288 Sep 25 21:02 output", 
        "-rwxr-xr-x    1 ssbarnea  staff   361 Sep 25 21:02 sample-a.yml", 
        "-rwxr-xr-x    1 ssbarnea  staff   786 Sep 23 18:34 test-ansible-output"
    ]
} | msg: non-zero return code | stdout: total 48
drwxr-xr-x    9 ssbarnea  staff   288 Sep 23 18:21 .
drwxr-xr-x  130 ssbarnea  staff  4160 Sep 23 17:50 ..
-rw-r--r--@   1 ssbarnea  staff  8196 Sep 25 20:26 .DS_Store
drwxr-xr-x   13 ssbarnea  staff   416 Sep 25 20:59 .git
-rw-r--r--    1 ssbarnea  staff     0 Sep 23 17:50 .gitignore
-rw-r--r--    1 ssbarnea  staff   174 Sep 23 18:23 Makefile
drwxr-xr-x    9 ssbarnea  staff   288 Sep 25 21:02 output
-rwxr-xr-x    1 ssbarnea  staff   361 Sep 25 21:02 sample-a.yml
-rwxr-xr-x    1 ssbarnea  staff   786 Sep 23 18:34 test-ansible-output

- Play recap -
  localhost                  : ok=0    changed=0    unreachable=0    failed=1   
Tuesday 25 September 2018  21:02:51 +0100 (0:00:07.202)       0:00:09.067 ***** 
=============================================================================== 
some command that returns more than one line of output -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 7.20s
Playbook run took 0 days, 0 hours, 0 minutes, 8 seconds