go

Ansible Role: Go

CI

An Ansible Role that installs Go (the language) on Linux, Windows and Mac.

Requirements

N/A

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

go_version: "1.17"
go_platform: linux
go_arch: amd64
go_ext: tar.gz

Version, platform, architecture and file extension to use when downloading Go.

go_tarball: go{{ go_version }}.{{ go_platform }}-{{ go_arch }}.{{ go_ext }}
go_download_url: https://dl.google.com/go/{{ go_tarball }}

On Windows machines, you can also set the following variables:

go_install_path: "C:\Program Files"

Dependencies

None.

Example Playbook

- hosts: myserver
  roles:
    - { role: mdelapenya.go }

License

MIT / BSD

Author Information

This role was created in 2022 as inspiration of Jeff Geerling's, adding support for Mac and Windows.

About

Go (language) installation for Linux, Windows and Mac.

Install
ansible-galaxy install mdelapenya/ansible-role-go
GitHub repository
License
mit
Downloads
111308