Created
September 4, 2014 19:30
-
-
Save jephir/c9bd4b135071b24f676d to your computer and use it in GitHub Desktop.
Ansible Playbook for installing Revel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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