|
|
|
@ -3,13 +3,13 @@ |
|
|
|
|
yum: name=java-1.7.0-openjdk state=present |
|
|
|
|
|
|
|
|
|
- name: Download Tomcat |
|
|
|
|
get_url: url=http://mirror.symnds.com/software/Apache/tomcat/tomcat-7/v7.0.42/bin/apache-tomcat-7.0.42.tar.gz dest=/opt/apache-tomcat-7.0.42.tar.gz |
|
|
|
|
get_url: url=http://mirror.symnds.com/software/Apache/tomcat/tomcat-7/v7.0.47/bin/apache-tomcat-7.0.47.tar.gz dest=/opt/apache-tomcat-7.0.47.tar.gz |
|
|
|
|
|
|
|
|
|
- name: Extract archive |
|
|
|
|
command: chdir=/usr/share /bin/tar xvf /opt/apache-tomcat-7.0.42.tar.gz -C /usr/share/ creates=/usr/share/tomcat |
|
|
|
|
command: chdir=/usr/share /bin/tar xvf /opt/apache-tomcat-7.0.47.tar.gz -C /usr/share/ creates=/usr/share/tomcat |
|
|
|
|
|
|
|
|
|
- name: Symlink install directory |
|
|
|
|
file: src=/usr/share/apache-tomcat-7.0.42 path=/usr/share/tomcat state=link |
|
|
|
|
file: src=/usr/share/apache-tomcat-7.0.47 path=/usr/share/tomcat state=link |
|
|
|
|
|
|
|
|
|
- name: Add group "tomcat" |
|
|
|
|
group: name=tomcat |
|
|
|
|