Before I start tomcat I'm manually remove the deployed unpacked folder /app/tomcat/webapps/myapp
inorder to clear caching issues.
I have the /app/tomcat/webapps/myapp.war
which is auto-deployed and i get folder /app/tomcat/webapps/myapp
created when started manually as below.
cd /app/tomcat/bin
./starttomcat.sh
The auto deploy does not work i.e. folder /app/tomcat/webapps/myapp
is not created when i start tomcat through ansible automation as below:
---
- name: This is a tomcat start
hosts: localhost
tasks:
- shell: "/app/tomcat/bin/starttomcat.sh"
Below is the setting in the server.xml of tomcat
grep webapps /app/tomcat/conf/server.xml
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
Can you please suggest how can i enforce myapp.war
deployment even if the myapp.war
is not a new one?