# Ansible show simple variable

**URL:** <https://forum.ansible.com/t/ansible-show-simple-variable/30021>\
**Category:** Ansible Project\
**Created:** [March 29, 2019, 10:55am UTC](https://forum.ansible.com/t/ansible-show-simple-variable/30021 "2019-03-29T10:55:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryad9200000](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Post date:** [March 29, 2019, 10:55am UTC](https://forum.ansible.com/t/ansible-show-simple-variable/30021/1 "2019-03-29T10:55:12Z")

</div>

Hi all,

I have this variable “my\_variable” with content “machainedecaractere”

Why when i show this variable with module :

- debug:  
msg: “{{ my\_variable }}”

I show on wondows :

ok: [localhost] =\> {  
“my\_variable”: {  
“changed”: false,  
“failed”: false,  
“meta”: {  
“machainedecaractere”  
}  
}  
}

Someone have an idea why i have this result ?

Thanks community ansible !! 😉

Regards,

---

<div class="post-metadata">

**Author:** ![Ankit2](https://avatars.discourse-cdn.com/v4/letter/a/ea5d25/32.png) [@Ankit2](https://forum.ansible.com/u/Ankit2)\
**Post date:** [March 29, 2019, 11:18am UTC](https://forum.ansible.com/t/ansible-show-simple-variable/30021/2 "2019-03-29T11:18:21Z")

</div>

Use **var** instead of **msg**.

- debug:  
**var** : “{{ my\_variable }}”

---

<div class="post-metadata">

**Author:** ![ryad9200000](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@ryad9200000](https://forum.ansible.com/u/ryad9200000)\
**Post date:** [March 29, 2019, 2:09pm UTC](https://forum.ansible.com/t/ansible-show-simple-variable/30021/3 "2019-03-29T14:09:52Z")

</div>

Hi Ankit,

I have the same result on my windows when i execut my script ansible ;(

I must find issue for that and i update this message.

Thank you !! 😉

Regards,
