Skip to content

Instantly share code, notes, and snippets.

@FrancisVarga
Created August 8, 2014 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrancisVarga/bdf81bb9b8437bdaa0d7 to your computer and use it in GitHub Desktop.
Save FrancisVarga/bdf81bb9b8437bdaa0d7 to your computer and use it in GitHub Desktop.
pre-setup ansible go environment
- hosts: all
sudo: false
tasks:
- name: Install python-apt
sudo: true
apt: name=python-software-properties state=installed update_cache=yes cache_valid_time=3600
- name: Install unzip
sudo: true
apt: name=unzip state=installed update_cache=yes cache_valid_time=3600
- name: Install go
sudo: true
apt: name=golang state=installed update_cache=yes cache_valid_time=3600
- name: Install git
sudo: true
apt: name=git state=installed update_cache=yes cache_valid_time=3600
- name: Install mercurial
sudo: true
apt: name=mercurial state=installed update_cache=yes cache_valid_time=3600
- name: Install s3cmd
sudo: true
apt: name=s3cmd state=installed update_cache=yes cache_valid_time=3600
- name: Install ansible
sudo: true
apt: name=ansible state=installed update_cache=yes cache_valid_time=3600
- name: create go sources folder
command: mkdir ~/GoSources
- name: export gopath
action: shell echo "export GOPATH=~/GoSources" >> /home/vagrant/.bashrc
- name: update sources
sudo: true
action: shell source /home/vagrant/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment