Ansible Role for Installing a Go Development Environment
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
defaults
meta
tasks
templates
tests
.gitignore
.travis.yml
LICENSE
Makefile
README.md
Vagrantfile
ansible.cfg
docker-compose.yml
local.yml
requirements.yml
vagrant.yml

README.md

ansible-role-go-dev Build Status

Installs and configures a Go development environment.

Available on Ansible Galaxy at naftulikay.go-dev.

Requirements

Currently only Linux and the amd64 architecture are supported, contributions welcome.

Role Variables

Please tour vars/main.yml and defaults/main.yml for a view into other variables, if any.

go_version
The version string of Go to install. Example: 1.8.3.
go_user
The user for which to install govendor and other tools.

Dependencies

None.

Example Playbook

Here are some example playbooks to get started with.

Install a Given Version of Go

Installs Go 1.7.4 with default configuration:

---
- name: install
  hosts: all
  become: true
  roles:
    - { role: go-dev, go_version: 1.7.4 }

Use an Alternate User GOPATH

Installs the latest Go version hardcoded in main/vars.yml, providing a shared Go directory of $HOME/go rather than $HOME/.go as is the default:

---
- name: install
  hosts: all
  become: true
  roles:
    - { role: go-dev, go_user_path: "$HOME/go" }

License

MIT