forked from thumubhatthi/all-setups
-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathtomcat.yml
More file actions
29 lines (22 loc) · 819 Bytes
/
tomcat.yml
File metadata and controls
29 lines (22 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
- hosts: all
tasks:
- name: download tomcat from dlcdn
get_url:
url: "https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.91/bin/apache-tomcat-9.0.91.tar.gz"
dest: "/root/"
- name: untar the apache file
command: tar -zxvf apache-tomcat-9.0.91.tar.gz
- name: rename the tomcat
command: mv apache-tomcat-9.0.91 tomcat
- name: install java
command: yum install java-1.8.0-openjdk -y
- name: setting the roles in tomcat-user.xml file
template:
src: tomcat-users.xml
dest: /root/tomcat/conf/tomcat-users.xml
- name: delete two lines in context.xml
template:
src: context.xml
dest: /root/tomcat/webapps/manager/META-INF/context.xml
- name: start the tomcat
shell: nohup /root/tomcat/bin/startup.sh