Hi all,

I'm trying to make modifications in tomcat config file server.xml using 
lineinfile. I have a whole valve tag to comment. I have things like that :

<Valve className="org.apache.catalina.valves.FastCommonAccessLogValve" 
directory="/usr/logs/tomcat/common/current/" prefix="access" suffix=".log" 
pattern="%h %t %v %H cookie:%{SESSIONID}c request:%{SESSIONID}r %m %U %s %q 
%r" />

And whould like to insert <!-- before, --> after.

Problème is that the tag may be on multiple lines :

<Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
  directory="/usr/logs/tomcat/common/current/"
  prefix="access"
  suffix=".log"
  pattern="%h %t %v %H cookie:%{SESSIONID}c request:%{SESSIONID}r %m %U %s 
%q %r" />

How to match this, and replace it ? Maybe lineinfile is not the solution...

Regards

n0vember

-- 
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-project+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to