dyindude.golang
dyindude.golang 
This is an Ansible role to install and set up Golang on a machine. It's based on the official Golang docker images.
- Golang is installed in the default location:
$GOROOT, which is/usr/local/go. - The default
GOPATHis set to/go, but you can change it using the variablegolang_gopath. - A script,
/etc/profile.d/gopath.sh, is created during installation to setGOPATHandPATHfor the whole system.
Role Variables
Here are the default variables:
golang_gopath: "/go"
golang_version: "1.11.2"
golang_arch: "linux-amd64"
Example Playbook
Here's an example of how to use it in a playbook:
- hosts: hosts
roles:
- dyindude.golang
License
This role is licensed under BSD.
Author Information
Created by dyindude.
Installa
ansible-galaxy install dyindude.golangLicenza
bsd-3-clause
Download
106
Proprietario
