# ansible-playbook does not show script output properly

**URL:** <https://forum.ansible.com/t/ansible-playbook-does-not-show-script-output-properly/11916>\
**Category:** Ansible Project\
**Created:** [September 21, 2012, 8:26am UTC](https://forum.ansible.com/t/ansible-playbook-does-not-show-script-output-properly/11916 "2012-09-21T08:26:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Edgars](https://avatars.discourse-cdn.com/v4/letter/e/f17d59/32.png) [@Edgars](https://forum.ansible.com/u/Edgars)\
**Post date:** [September 21, 2012, 8:26am UTC](https://forum.ansible.com/t/ansible-playbook-does-not-show-script-output-properly/11916/1 "2012-09-21T08:26:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [September 21, 2012, 12:30pm UTC](https://forum.ansible.com/t/ansible-playbook-does-not-show-script-output-properly/11916/2 "2012-09-21T12:30:35Z")

</div>

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
