Skip to content

Commit c6482ef

Browse files
author
lerndevops
authored
Update tomcat.yml
1 parent da7116f commit c6482ef

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

ansible/playbooks/tomcat.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
group: tomcat
2020
createhome: no
2121
- name: Download Tomcat
22-
# get_url: url=http://mirrors.estointernet.in/apache/tomcat/tomcat-8/v8.5.53/bin/apache-tomcat-8.5.53.tar.gz dest=/opt/apache-tomcat-8.5.53.tar.gz
23-
copy:
24-
src: /tmp/apache-tomcat-8.5.53.tar.gz
25-
dest: /opt
22+
get_url: url=https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.40/bin/apache-tomcat-8.5.40.tar.gz dest=/opt/apache-tomcat-8.5.40.tar.gz
23+
#copy:
24+
# src: /tmp/apache-tomcat-8.5.40.tar.gz
25+
# dest: /opt
2626
- name: Extract archive
27-
shell: /bin/tar xvf /opt/apache-tomcat-8.5.53.tar.gz -C /opt/
27+
shell: /bin/tar xvf /opt/apache-tomcat-8.5.40.tar.gz -C /opt/
2828
- name: create symlink
2929
file:
30-
src: /opt/apache-tomcat-8.5.53
30+
src: /opt/apache-tomcat-8.5.40
3131
path: /opt/tomcat
3232
state: link
3333
- name: Change ownership of Tomcat installation
@@ -38,17 +38,17 @@
3838
mode: 0755
3939
state: directory
4040
recurse: yes
41-
- name: Install Tomcat init script
42-
copy:
43-
src: /tmp/tomcat-initscript.sh
44-
dest: /etc/init.d/tomcatd
45-
mode: 0755
46-
- name: enable service
47-
shell: update-rc.d tomcatd defaults 95
48-
- name: Start Tomcat
49-
service:
50-
name: tomcatd
51-
state: restarted
41+
#- name: Install Tomcat init script
42+
# copy:
43+
# src: /tmp/tomcat-initscript.sh
44+
# dest: /etc/init.d/tomcatd
45+
# mode: 0755
46+
#- name: enable service
47+
# shell: update-rc.d tomcatd defaults 95
48+
#- name: Start Tomcat
49+
# service:
50+
# name: tomcatd
51+
# state: restarted
5252
- name: Start Tomcat
5353
command: "nohup /opt/tomcat/bin/startup.sh"
5454
- name: print variables

0 commit comments

Comments
 (0)