Go Roles

install-go

Install go

Role Variables

go_install_dir
Default: /usr/local/

Directory to install go in.

go_version
Default: 1.13
go_os
Default: {{ ansible_system | lower }}
go_arch
Default: amd64 / 386
go

Run go command in a source directory. Assumes the appropriate version of go has been installed.

Role Variables

go_command

Go command to run. This parameter is mandatory. Examples are “test”, “run” or “build”

go_package_dir

Directory of the affected go package.

go_bin_path
Default: {{ go_install_dir }}/go/bin

Path to go bin directory

zuul_work_dir
Default: {{ zuul.project.src_dir }}

Directory to run go in.