geerlingguy.go
Ansible Role: Go
An Ansible Role that installs Go (the language) on Linux.
Requirements
N/A
Role Variables
Available variables are listed below, along with default values (see defaults/main.yml
):
go_version: "1.17.3"
go_platform: linux
go_arch: amd64
Version, platform, and architecture to use when downloading Go.
go_tarball: go{{ go_version }}.{{ go_platform }}-{{ go_arch }}.tar.gz
go_download_url: https://dl.google.com/go/{{ go_tarball }}
These two variables are used to build the download URL when installing Go.
go_checksum: '550f9845451c0c94be679faf116291e7807a8d78b43149f9506c1b15eb89008c'
SHA256 checksum of the Go download. If changing the version, platform, or architecture, you will also need to update this checksum, too.
Dependencies
None.
Example Playbook
- hosts: myserver
roles:
- { role: geerlingguy.go }
License
MIT / BSD
Author Information
This role was created in 2021 by Jeff Geerling, author of Ansible for DevOps.
Install
ansible-galaxy install geerlingguy.go
License
mit
Downloads
19.5k
Owner
Father, author, developer, maker. Sometimes called "an inflammatory enigma". #stl #drupal #ansible #k8s #raspberrypi #crohns