- There is also an Ansible Collection for Go available, you can use that instead of this single role.
- This installs the Go Language tools on Linux and macOS systems
- In 'group_vars/all/vars.yml' you can specify the Go version you would like to download and install (See: Go versions)
- Adjust the 'inventory' file to your needs.
ansible-playbook -i inventory main.yml -K
- Ansible will ask for the 'BECOME password', this is your sudo password
- After the installation a reboot is needed, to ensure that the new environment variables are loaded correctly