Skip to content

Commit 67743f1

Browse files
committed
add deploy file
1 parent 2a459a1 commit 67743f1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

deploy.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
- name: Deploy custom WAR file
3+
hosts: deployment_server
4+
tasks:
5+
- name: Copy WAR file to web container
6+
copy:
7+
src: target/calculator.war
8+
dest: /usr/local/tomcat/webapps/calculator.war
9+
- name: Restart web container
10+
service:
11+
name: tomcat
12+
state: restarted

0 commit comments

Comments
 (0)