Skip to content

Instantly share code, notes, and snippets.

@jephir
Created September 4, 2014 19:30
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jephir/c9bd4b135071b24f676d to your computer and use it in GitHub Desktop.
Save jephir/c9bd4b135071b24f676d to your computer and use it in GitHub Desktop.
Ansible Playbook for installing Revel
---
- hosts: all
tasks:
- name: install go
pkgng: name=go
sudo: yes
- name: install git
pkgng: name=git
sudo: yes
- name: install mercurial
pkgng: name=mercurial
sudo: yes
- name: set gopath
lineinfile: dest=/home/vagrant/.profile line="export GOPATH=/vagrant" create=yes
- name: add go project binaries to path
lineinfile: "dest=/home/vagrant/.profile line='PATH=$PATH:$GOPATH/bin'"
- name: install revel
command: /usr/local/bin/go get github.com/revel/revel creates=/vagrant/src/github.com/revel/revel
- name: install revel command tools
command: /usr/local/bin/go get github.com/revel/cmd/revel creates=/vagrant/src/github.com/revel/cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment