ansible-playbook 2.5.3
  config file = /Users/ssbarnea/.ansible.cfg
  configured module search path = [u'/Users/ssbarnea/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/ssbarnea/.pyenv/versions/2.7.14/lib/python2.7/site-packages/ansible
  executable location = /Users/ssbarnea/.pyenv/versions/2.7.14/bin/ansible-playbook
  python version = 2.7.14 (default, Jul 27 2018, 16:44:08) [GCC 4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)]
Using /Users/ssbarnea/.ansible.cfg as config file
setting up inventory plugins
Set default localhost to localhost
Parsed localhost, inventory source with host_list plugin
Loading callback plugin json of type stdout, v2.0 from /Users/ssbarnea/.pyenv/versions/2.7.14/lib/python2.7/site-packages/ansible/plugins/callback/json.pyc
Loading callback plugin profile_tasks of type aggregate, v2.0 from /Users/ssbarnea/.pyenv/versions/2.7.14/lib/python2.7/site-packages/ansible/plugins/callback/profile_tasks.pyc
Loading callback plugin timer of type aggregate, v2.0 from /Users/ssbarnea/.pyenv/versions/2.7.14/lib/python2.7/site-packages/ansible/plugins/callback/timer.pyc
1 plays in ./sample-a.yml
META: ran handlers
Tuesday 25 September 2018  21:02:43 +0100 (0:00:01.580)       0:00:01.580 ***** 
Using module file /Users/ssbarnea/.pyenv/versions/2.7.14/lib/python2.7/site-packages/ansible/modules/commands/command.py
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: ssbarnea
<localhost> EXEC /bin/sh -c '/usr/bin/python && sleep 0'
{
    "plays": [
        {
            "play": {
                "id": "7a00403a-7300-a3b7-cf36-000000000006", 
                "name": "test output"
            }, 
            "tasks": [
                {
                    "hosts": {
                        "localhost": {
                            "_ansible_no_log": false, 
                            "_ansible_parsed": true, 
                            "changed": true, 
                            "cmd": "ls -la && exit 1", 
                            "delta": "0:00:00.022890", 
                            "end": "2018-09-25 21:02:50.293036", 
                            "invocation": {
                                "module_args": {
                                    "_raw_params": "ls -la && exit 1", 
                                    "_uses_shell": true, 
                                    "chdir": null, 
                                    "creates": null, 
                                    "executable": null, 
                                    "removes": null, 
                                    "stdin": null, 
                                    "warn": true
                                }
                            }, 
                            "msg": "non-zero return code", 
                            "rc": 1, 
                            "start": "2018-09-25 21:02:50.270146", 
                            "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"
                            ]
                        }
                    }, 
                    "task": {
                        "id": "7a00403a-7300-a3b7-cf36-000000000008", 
                        "name": "some command that returns more than one line of output"
                    }
                }
            ]
        }
    ], 
    "stats": {
        "localhost": {
            "changed": 0, 
            "failures": 1, 
            "ok": 0, 
            "skipped": 0, 
            "unreachable": 0
        }
    }
}
Tuesday 25 September 2018  21:02:50 +0100 (0:00:06.398)       0:00:07.978 ***** 
=============================================================================== 
some command that returns more than one line of output -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 6.40s
/Users/ssbarnea/os/os/ansible-output/sample-a.yml:10 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Playbook run took 0 days, 0 hours, 0 minutes, 7 seconds