golang
dyindude.golang
Ansible role for installing and setting up a working golang distribution on a machine. Modeled after the official golang docker images.
- The binary distribution gets installed to the default
$GOROOT
,/usr/local/go
. GOPATH
defaults to/go
and can be changed via the default variablegolang_gopath
./etc/profile.d/gopath.sh
is rendered as a part of the installation and setsGOPATH
andPATH
appropriately (system-wide).
Role Variables
defaults:
golang_gopath: "/go"
golang_version: "1.11.2"
golang_arch: "linux-amd64"
Example Playbook
- hosts: hosts
roles:
- dyindude.golang
License
BSD
Author Information
dyindude
Install
ansible-galaxy install dyindude/ansible-role-golang
License
bsd-3-clause
Downloads
83
Owner