Ansible Role: Go language SDK

Tests Ansible Galaxy License

Role to download and install the Go language SDK.

Requirements

  • Ansible >= 2.9

  • Linux Distribution

    • Debian Family

      • Debian

        • Stretch (9)
        • Buster (10)
        • Bullseye (11)
      • Ubuntu

        • Xenial (16.04)
        • Bionic (18.04)
        • Focal (20.04)
    • RedHat Family

      • Rocky Linux

        • 8
      • Fedora

        • 35
    • SUSE Family

      • openSUSE

        • 15.3
    • Note: other versions are likely to work but have not been tested.

Role Variables

The following variables will change the behavior of this role (default values are shown below):

Supported Go language SDK Versions

The following versions of Go language SDK are supported without any additional configuration (for other versions follow the Advanced Configuration instructions):

1.20.11.201.19.61.19.51.19.41.19.31.19.21.19.11.191.18.101.18.91.18.81.18.71.18.61.18.51.18.41.18.31.18.21.18.11.181.17.131.17.121.17.111.17.101.17.91.17.81.17.71.17.61.17.51.17.41.17.31.17.21.17.11.171.16.151.16.141.16.131.16.121.16.111.16.101.16.91.16.81.16.71.16.61.16.51.16.41.16.31.16.21.16.11.161.15.151.15.141.15.131.15.121.15.111.15.101.15.91.15.81.15.71.15.61.15.51.15.41.15.31.15.21.15.11.151.14.151.14.141.14.131.14.121.14.111.14.101.14.91.14.81.14.71.14.61.14.51.14.41.14.31.14.21.14.11.141.13.151.13.141.13.131.13.121.13.111.13.101.13.91.13.81.13.71.13.61.13.51.13.41.13.31.13.21.13.11.131.12.171.12.161.12.151.12.141.12.131.12.121.12.111.12.101.12.91.12.81.12.71.12.61.12.51.12.41.12.31.12.21.12.11.121.11.131.11.121.11.111.11.101.11.91.11.81.11.71.11.61.11.51.11.41.11.31.11.21.11.11.111.10.81.10.71.10.61.10.51.10.41.10.31.10.21.10.11.101.9.61.9.51.9.41.9.31.9.21.9.11.91.8.71.8.61.8.51.8.41.8.31.8.21.8.11.81.7.41.7.3

Advanced Configuration

The following role variable is dependent on the Go language SDK version; to use a Go language SDK version not pre-configured by this role you must configure the variable below:

Example Playbook

Role Facts

This role exports the following Ansible facts for use by other roles:

ansible_local.golang.general.version1.7.3ansible_local.golang.general.home/opt/golang/1.7.3

More Roles From GantSign

You can find more roles from GantSign on Ansible Galaxy.

Development & Testing

This project uses Molecule to aid in the development and testing; the role is unit tested using Testinfra and pytest.

To develop or test you'll need to have installed the following:

Because the above can be tricky to install, this project includes Molecule Wrapper. Molecule Wrapper is a shell script that installs Molecule and it's dependencies (apart from Linux) and then executes Molecule with the command you pass it.

To test this role using Molecule Wrapper run the following command from the project root:

sudo

License

MIT

Author Information

John Freeman

GantSign Ltd. Company No. 06109112 (registered in England)