forked from RAHAMSHAIK007/all-setups
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtomcat.yml
30 lines (23 loc) · 829 Bytes
/
tomcat.yml
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
30
- hosts: all
tasks:
- name: download tomcat from dlcdn
get_url:
url: "https://dlcdn.apache.org/tomcat/tomcat-9/v9.0.87/bin/apache-tomcat-9.0.87.tar.gz"
dest: "/root/"
- name: untar the apache file
command: tar -zxvf apache-tomcat-9.0.87.tar.gz
- name: rename the tomcat
command: mv apache-tomcat-9.0.87 tomcat
tags: abc
- 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