dyindude.golang

dyindude.golang CircleCI

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 variable golang_gopath.
  • A script, /etc/profile.d/gopath.sh, is created during installation to set GOPATH and PATH 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.

Informazioni sul progetto

install and set up golang distribution

Installa
ansible-galaxy install dyindude.golang
Licenza
bsd-3-clause
Download
94
Proprietario