I’m setting up tomcat, and change a parameter in a config file as follows:
- name: set max-request-size
lineinfile: dest={{ tomcat_home }}/webapps/manager/WEB-INF/web.xml regexp=“max-request-size” line=“1000000000”
Post processing, lines in the target file web.xml now end with a ^M. The lines that were replaced are fine, e.g.
^M
1000000000 <— OK!
0^M
This is as seen vi, on a RHEL64 system.
What am I doing wrong?