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
14 views
Skip to first unread message
Veeresh Reddy
unread,
Dec 15, 2017, 2:07:41 PM12/15/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
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
Dick Visser
unread,
Dec 19, 2017, 7:44:41 AM12/19/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
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.