Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Petclinic Ansible playbook
- hosts: vagrant
sudo: yes
- name: update apt cache
apt: update_cache=yes cache_valid_time=3600
- name: install apt packages
apt: pkg={{item}} state=latest
- openjdk-7-jdk
- unzip
- git
- name: set java home
lineinfile: dest=/home/vagrant/.bashrc regexp="export JAVA_HOME" line="export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/"
- name: install the app
git: repo= dest=/opt/petclinic/app version=HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.