mdelapenya.go
Ansible Role: Go
This is an Ansible Role that installs the Go programming language on Linux, Windows, and Mac.
Requirements
None.
Role Variables
Here are the variables you can use, along with their default values (found in defaults/main.yml
):
go_version
: "1.17" (the version of Go to install)go_platform
: linux (the operating system)go_arch
: amd64 (the architecture type)go_ext
: tar.gz (the file extension to use)
These settings determine how Go is downloaded.
go_tarball
: This will create a filename based on the version, platform, architecture, and file extension.go_download_url
: This is the URL where Go can be downloaded from.
For Windows machines, you can also define:
go_install_path
: "C:\Program Files" (where to install Go)
Dependencies
There are no dependencies.
Example Playbook
To use this role, you can create a playbook like this:
- hosts: myserver
roles:
- { role: mdelapenya.go }
License
MIT / BSD
Author Information
This role was created in 2022, inspired by Jeff Geerling's work, and it has added support for Mac and Windows systems.
Installa
ansible-galaxy install mdelapenya.go
Licenza
mit
Download
111.3k
Proprietario