Installs Golang on Debian/Ubuntu servers. Releases: https://go.dev/dl/
# Version of 'go' to install, defaults to latest version
golang_version: ""
# Toggling this will uninstall from the server
uninstall: false
A list of operating systems that have been verified on
- Ubuntu 16.04 (xenial)
- Ubuntu 18.04 (bionic)
- Ubuntu 20.04 (focal)
- Ubuntu 21.04 (hirsute)
- Ubuntu 21.10 (impish)
- Debian 9 (stretch)
- Debian 10 (buster)
- Debian 11 (bullseye)
- Debian 12 (bookworm)
Minimal:
- name: Install CLI
hosts: all
roles:
- role: exzeo.golang
Specific Version:
- name: Install CLI
hosts: all
roles:
- role: exzeo.golang
vars:
golang_version: "1.22.4"
Uninstall:
- name: Install CLI
hosts: all
roles:
- role: exzeo.golang
vars:
uninstall: true