# Ansible debug module wont show colorful output like shell echo

**URL:** <https://forum.ansible.com/t/ansible-debug-module-wont-show-colorful-output-like-shell-echo/31671>\
**Category:** Ansible Developer\
**Created:** [November 17, 2019, 2:13am UTC](https://forum.ansible.com/t/ansible-debug-module-wont-show-colorful-output-like-shell-echo/31671 "2019-11-17T02:13:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@Nick1](https://forum.ansible.com/u/Nick1)\
**Post date:** [November 17, 2019, 2:13am UTC](https://forum.ansible.com/t/ansible-debug-module-wont-show-colorful-output-like-shell-echo/31671/1 "2019-11-17T02:13:41Z")

</div>

My shell script echoes status in colorful texts. I used register variable to store the output. Used debug module to output it. But instead of colorful texts all it does is append like :

“stdout\_lines”: [“\u001b[31mRed text \u001b[47mand white background\u001b(B\u001b[0m”]

I actually want it to be Red text and white background

My sample playbook looks like this:

- name: output shell scripts with color

shell: ‘echo “$(tput setaf 1)Red text $(tput setab 7)and white background$(tput sgr 0)”’

register: echo\_output

- debug: var=echo\_output

Any help appreciated!

> **(attachments)**
>
> ![Screenshot 2019.png](https://us1.discourse-cdn.com/ansible/original/2X/1/126ea06e5d38dbe9b4599c6ab64a072ab417601e.png)
