You could use a regex to strip comments, but that's going to be fragile at best.
Might be better off by processing it with a real XML parser.
Take a look at the new xml module:
http://docs.ansible.com/ansible/latest/xml_module.html
You might be able to use that to add your tomcat filters.

Dick

On 15 December 2017 at 20:07, Veeresh Reddy <[email protected]> wrote:
> how to comment out or remove the characters (<!-- -->) in the tomcat web.xml
> file using ansible and also a simple playbbok to add the tomcat filters to
> web.xml file.please help me
>
> --
> 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/66b39bb1-4ffd-4fe2-92ea-d548b7183b6d%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Dick Visser
GÉANT

Want to join us? We're hiring: https://www.geant.org/jobs

-- 
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/CAL8fbwOo1wweK6xWckH-iBh8OgMyqMGQZd2%3DkakMT_kJ%2B8tVTg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to