ansible-playbook does not show script output properly

Hi

I have some bash script which I want to run on my remote nodes. This script generates some output. When I run this script with ansible -m command, everything works fine, I can see the output from all nodes. However, when I do the same using ansible-playbook, I dont see any output from that script. I can use -v flag, but then all output is in one big mess. It seems that ansible-playbook ignores echo newlines and tabs and writes everything in one line. How could I workaround this?

Thanks

Edgars

Basically we need to make a slight tweak to callbacks.py to pop the stdout and stderr out of the JSON and print them cleanly. Strongly agree, make sure there is a github ticket filed so we get to this!

-- Michael