Hello guys,
I've got a problem with ansible playbook. In fact, I use debug module to
display a file content.
*the content of myfile is : *
<network ip="1.2.3.[0-255]" />
*my playbook.yml is as follow: *
- name: Display file content
shell: cat myfile
register: file
- debug:
msg: "{{file.stdout_lines}}"
*playbook.yml output : *
TASK [debug]
***************************************************************************************************************************
ok: [serveur] => {
"msg": [
" <network ip=*\*"1.2.3.[0-255]*\*" />"
]
}
I don't want ansible to add anti-slashes before double quotes. I just want
it to display the file content as it is.
I'll appreciate any help to fix this.
Thanks in advance.
Rasha
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/6d4fb9e3-d840-4783-9f29-af11da21edc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.