https://github.com/tinyblargon/ansible-role-go
Ansible role to install the Go programming language.
https://github.com/tinyblargon/ansible-role-go
ansible-role debian go golang ubuntu
Last synced: 5 months ago
JSON representation
Ansible role to install the Go programming language.
- Host: GitHub
- URL: https://github.com/tinyblargon/ansible-role-go
- Owner: Tinyblargon
- License: mit
- Created: 2025-03-23T16:22:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-10-06T21:49:30.000Z (9 months ago)
- Last Synced: 2025-10-06T23:24:20.259Z (9 months ago)
- Topics: ansible-role, debian, go, golang, ubuntu
- Homepage: https://galaxy.ansible.com/ui/standalone/roles/tinyblargon/go/
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: go
[](https://github.com/Tinyblargon/ansible-role-go)
Ansible role to install the [Go](https://golang.org) programming language.
## Requirements
n/a
## Role Variables
| Variable Name| Type | Default Value| Description|
| :------------|:-----:| :-----------:| :----------|
| go_version: | string| "1.24.1" | Go version to download and install, when the version changes the old install will be removed and a new one will be created.|
| go_state: | string| "present" | When `"present"` Go will be installed, when `"absent"` Go will be removed. With `"present-reinstall"` the version check is ignored and go will be reinstalled on every run.|
| go_checksum: | string| "" | Checksum of the downloaded archive, syntax `"sha256:cb2396..."`.|
## Dependencies
n/a
## Example Playbook
```yaml
- hosts: all
roles:
- role: tinyblargon.go
vars:
go_version: "1.24.1"
go_checksum: sha256:cb2396bae64183cdccf81a9a6df0aea3bce9511fc21469fb89a0c00470088073
go_state: present-reinstall
```
## License
MIT