# Split debug msg on multilines

**URL:** <https://forum.ansible.com/t/split-debug-msg-on-multilines/25806>\
**Category:** Ansible Project\
**Created:** [October 24, 2017, 7:28am UTC](https://forum.ansible.com/t/split-debug-msg-on-multilines/25806 "2017-10-24T07:28:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmoullia](https://avatars.discourse-cdn.com/v4/letter/c/a5b964/32.png) [@cmoullia](https://forum.ansible.com/u/cmoullia)\
**Post date:** [October 24, 2017, 7:28am UTC](https://forum.ansible.com/t/split-debug-msg-on-multilines/25806/1 "2017-10-24T07:28:13Z")

</div>

Hi,

I have created my debug msg task as such

`

- name: Print VM Info  
debug:  
msg: “VM Info: {{ vm\_created | to\_nice\_yaml(indent=8) }}”

`

but the result doesn’t show the text on multilines

`

TASK [Print VM Info] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [localhost] =\> {  
“msg”: "VM Info: changed: true\nfailed: false\nid: 94907080-18d2-49e0-85af-d0646c9ce0d2\nopenstack:\n OS-DCF:diskConfig: MANUAL\n

`

How can I replace “\n” with new line ?

Regards,

Charles

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [October 24, 2017, 9:36am UTC](https://forum.ansible.com/t/split-debug-msg-on-multilines/25806/2 "2017-10-24T09:36:38Z")

</div>

Ansible is not a reporting tool so it have limited option included.  
You can try this:

- name: Print VM Info  
&nbsp;&nbsp;&nbsp;debug:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var: vm\_created

it will give a more human readable format.

If that is not to satisfaction you would need to write your own callback plugin or try one of the included ones  
[https://docs.ansible.com/ansible/devel/plugins/callback.html#plugin-list](https://docs.ansible.com/ansible/devel/plugins/callback.html#plugin-list)
