Tomcat deployments in GCE using Ansible
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gce_vars
roles
.gitignore
LICENSE
README.md
bootstrap-instance.yml
deploy-war.yml
hosts
install-java.yml
install-tomcat.yml
requirements.txt
run.yml

README.md

gce-tomcat-ansible-demo

Tomcat deployments in GCE using Ansible

Prerequisites

  • Python 2.6 or above with python-dev and python-pip packages
  • apache-libcloud python package
  • Google cloud platform billable account, a project and a service account with appropriate roles and permission

Install required software

Make sure that you have installed Python 2 and python-dev packages and python-pip.

Install required python packages

pip install -r requirements.txt

Configurations and preparations

Google Cloud Platform related

Make sure that have a Google Cloud Platform account and the billing is enabled, see https://cloud.google.com

Roles related

  • To configure installation of Java, Tomcat and deployment related metadata refer defaults/main.yml of each role.

Run playbook

  • Set environment variables.
export ANSIBLE_HOSTS=hosts
  • All done. Now run the playbook and see.
ansible-playbook run.yml