Installs go on Ubuntu (and other Linux)
Requires Ansible 2.0 or higher.
Example playbook -
#!/usr/bin/env /usr/bin/ansible-playbook
---
- hosts: localhost
vars:
ansible_golang_install_glide: true
ansible_golang_user: vagrant
ansible_golang_group: vagrant
ansible_golang_gopath: "$HOME/go"
roles:
- ansible_golang
-
ansible_golang_user
: The user that go is installed as/for. Must be defined in your playbook -
ansible_golang_group
: The group that go is installed as/for. Must be defined in your playbook -
ansible_golang_user_dir
: $GOPATH. Must be defined in your playbook -
ansible_golang_tar_name
: The specific version you want to install from the Downloads page -
ansible_golang_tar_checksum
: Checksum for the above tar from the Download Page -
ansible_golang_version_and_target
: Basically whatgo version
returns (e.g.go version go1.6.1 darwin/amd64
) -
ansible_golang_download_base_url
: The base URL that you get the download from - probably not something you need to touch -
ansible_golang_install_glide
: Install Glide if defined -
ansible_golang_glide_download_base_url
: The base URL for Glide -
ansible_golang_glide_sh_name
: The executable that does the Glide installation
None.
BSD
Mahesh Paolini-Subramanya : @dieswaytoofast everywhere - twitter / linkedin / github