File tree Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Expand file tree Collapse file tree 1 file changed +17
-17
lines changed Original file line number Diff line number Diff line change 19
19
group : tomcat
20
20
createhome : no
21
21
- 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
26
26
- 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/
28
28
- name : create symlink
29
29
file :
30
- src : /opt/apache-tomcat-8.5.53
30
+ src : /opt/apache-tomcat-8.5.40
31
31
path : /opt/tomcat
32
32
state : link
33
33
- name : Change ownership of Tomcat installation
38
38
mode : 0755
39
39
state : directory
40
40
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
52
52
- name : Start Tomcat
53
53
command : " nohup /opt/tomcat/bin/startup.sh"
54
54
- name : print variables
You can’t perform that action at this time.
0 commit comments