Ansible role that installs Go. The latest stable release that has been compiled for x86 64-bit Linux systems is installed by default, and different platforms and versions are supported by modifying the role variables.
By default, ansible-go detects the latest version of Go using github tags and version sort and checks if that version is already installed.
If not, it downloads the tarball from the official mirror (if there's not already a file with matching SHA256 checksum), verifies the GPG signature, and extracts it in /usr/local/src/
.
You can install a specific version of Go (e.g. if you are installing on FreeBSD, or if you need to use an earlier release) by setting the go_version
variable. A list of versions can be found on the Go Downloads page.
E.g. go_version: "1.10"
.
The go_tarball_checksum
variable controls how the integrity of the downloaded tarball is validated.
See the ansible documentation for details and syntax (checksum
field).
Tarball checksums can be found on the Go Download Page.
For more options, check the default variables.
According to this page, the latest version of the keys for the GPG signature can be found here.
The MIT License (MIT)
Copyright (c) 2013-2016 Joshua Lund
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
You can find me on Twitter, and on GitHub. I also occasionally blog at MissingM.