Ansible role to install go compiler from Google Archive https://golang.org/
It was tested on the following versions:
- 1.9
- 2.0
- 2.5
Tested on Ubuntu 14.04, 16.04, 18.04 centos7
Just include this role in your list. For example
- host: all
roles:
- juju4.golang
Nothing specific for now.
This role has a travis basic test (for github), more advanced with kitchen and also a Vagrantfile (test/vagrant). Default kitchen config (.kitchen.yml) is lxd-based, while (.kitchen.vagrant.yml) is vagrant/virtualbox based.
Once you ensured all necessary roles are present, You can test with:
$ gem install kitchen-ansible kitchen-lxd_cli kitchen-sync kitchen-vagrant
$ cd /path/to/roles/juju4.golang
$ kitchen verify
$ kitchen login
$ KITCHEN_YAML=".kitchen.vagrant.yml" kitchen verify
or
$ cd /path/to/roles/juju4.golang/test/vagrant
$ vagrant up
$ vagrant ssh
BSD 2-clause