Hello every one,
I'm working with Ansible to manipulate and make automation to tomcat server events,
My objective is to update the tomcat server port , the default port is 8080,
The port number is in the "server.xml",
The path is "
/Server/Service/Connector"
But the problem is that i have two connector in the "server.xml" file
So it's hard to identify with port to update for Ansible.
The file looks like this :
<Service name="Catalina">
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="9080" protocol="AJP/1.3" redirectPort="8443" />
</Service>
I want to update the "8080" port not the "9080",
Thank you for your help.