Skip to content

borderhub/ansible-vagrant-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-vagrant-java

Please prepare in advance

$ brew install ansible

$ brew cask install vagrant

$ brew cask install virtualbox

clone

git clone https://github.com/borderhub/ansible-vagrant-java.git

run

$ vagrant up

check

http://192.168.33.10:8080/sample/

customize

If you want to change war file in /www/tomcat/webapps

1. change file name

before

sample-1.0.war

after

yourfilename.war

2. edit main.yml

$ cd /roles/tomcat/tasks

$ vi main.yml

before

name: symbolic link to war file

file: src=/var/www/tomcat/webapps/sample-1.0.war dest=/usr/share/tomcat/webapps/sample.war state=link force=yes

after

name: symbolic link to war file

file: src=/var/www/tomcat/webapps/yourfilename.war dest=/usr/share/tomcat/webapps/sample.war state=link force=yes

3. edit context.xml

$ cd /roles/tomcat/templates

$ vi context.xml

before

<Context path="" docBase="sample" allowLinking="true" debug="0" reloadable="true" crossContext="true">

after

<Context path="" docBase="yourfilename" allowLinking="true" debug="0" reloadable="true" crossContext="true">

About

Execute tomcat from within the vagrant environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%