using lineinfile module for modifying XML file issue

514 views
Skip to first unread message

jack

unread,
Apr 9, 2014, 3:41:19 PM4/9/14
to ansible...@googlegroups.com
Hi,

We are using ansible 1.5.3, and trying to replace/add a line to a xml file. But after lineinfile task is executed, the file format got changed from the Linux to windows, we observed that the end of line for all the line (except the line added or replaced) has been changed (end of line with ^M). We double checked the xml file format before the liniinfile task executed was correct linux format.  Any idea about this?

Thanks
Jack 

Michael DeHaan

unread,
Apr 15, 2014, 4:43:06 PM4/15/14
to ansible...@googlegroups.com
Sorry for late response here -- PyCON travel and such.

"except the line added or replaced) has been changed (end of line with ^M)"

Are you saying Windows files get changed to Linux format, instead of the opposite?

I'd expect this to be the case.




--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d8dac875-6603-4e2d-a722-1ae0ddf2f259%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages