Ansible show simple variable

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 !! :wink:

Regards,

Use var instead of msg.

  • debug:
    var: “{{ my_variable }}”

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 !! :wink:

Regards,