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
GOPATH
is set to/go
, but you can change it using the variablegolang_gopath
. - A script,
/etc/profile.d/gopath.sh
, is created during installation to setGOPATH
andPATH
for 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.golang
Licenza
bsd-3-clause
Download
94
Proprietario