{"id":15878902,"url":"https://github.com/darkwizard242/ansible-role-go","last_synced_at":"2026-01-26T17:06:56.048Z","repository":{"id":44584316,"uuid":"253346281","full_name":"darkwizard242/ansible-role-go","owner":"darkwizard242","description":"Ansible role for Go Programming Language. Available on Ansible Galaxy.","archived":false,"fork":false,"pushed_at":"2024-06-21T21:40:14.000Z","size":56,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T06:01:09.273Z","etag":null,"topics":["ansible","ansible-galaxy","ansible-role","go","golang","programming-language","system"],"latest_commit_sha":null,"homepage":"https://galaxy.ansible.com/darkwizard242/go","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darkwizard242.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-05T22:41:46.000Z","updated_at":"2024-06-21T21:39:59.000Z","dependencies_parsed_at":"2024-04-12T00:24:29.996Z","dependency_job_id":"4ced3b43-b9ed-41f3-a424-a41d37da7150","html_url":"https://github.com/darkwizard242/ansible-role-go","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darkwizard242%2Fansible-role-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darkwizard242","download_url":"https://codeload.github.com/darkwizard242/ansible-role-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239565649,"owners_count":19660154,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-galaxy","ansible-role","go","golang","programming-language","system"],"created_at":"2024-10-06T02:42:16.062Z","updated_at":"2025-11-09T01:30:36.468Z","avatar_url":"https://github.com/darkwizard242.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[[![build-test](https://github.com/darkwizard242/ansible-role-go/workflows/build-and-test/badge.svg?branch=master)](https://github.com/darkwizard242/ansible-role-go/actions?query=workflow%3Abuild-and-test) [![release](https://github.com/darkwizard242/ansible-role-go/workflows/release/badge.svg)](https://github.com/darkwizard242/ansible-role-go/actions?query=workflow%3Arelease) ![Ansible Role](https://img.shields.io/ansible/role/d/darkwizard242/go) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-go\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=ansible-role-go) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-go\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=ansible-role-go) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ansible-role-go\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=ansible-role-go) ![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/darkwizard242/ansible-role-go?label=release) ![GitHub repo size](https://img.shields.io/github/repo-size/darkwizard242/ansible-role-go?color=orange\u0026style=flat-square)\n\n# Ansible Role: go\n\nRole to install (_by default_) [go](https://golang.org) programming language on **Debian/Ubuntu** and **EL** systems.\n\n## Requirements\n\nNone.\n\n## Role Variables\n\nAvailable variables are listed below (located in `defaults/main.yml`):\n\n### Variables list:\n\n```yaml\ngo_app: go\ngo_setup: true\ngo_version: 1.22.4\ngo_os: \"{{ ansible_system | lower }}\"\ngo_architecture_map:\n  amd64: amd64\n  arm: arm64\n  x86_64: amd64\n  armv6l: armv6\n  armv7l: armv7\n  aarch64: arm64\n  32-bit: \"386\"\n  64-bit: amd64\ngo_dl_url: \"https://dl.google.com/{{ go_app }}/{{ go_app }}{{ go_version }}.{{ go_os }}-{{ go_architecture_map[ansible_architecture] }}.tar.gz\"\ngo_bin_path: /usr/local\ngo_profile_template_export_line: \"{{ go_bin_path}}/go/bin\"\ngo_profile_template_path: /etc/profile.d\ngo_profile_template_source_file: go.j2\ngo_profile_template_dest_file: go.sh\n```\n\n### Variables table:\n\nVariable                        | Description\n------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\ngo_app                          | Defines the app to install i.e. **go**\ngo_setup                        | Boolean variable that only allows `true` or `false` values. Defaults to `true`. When set to `true` it will setup/install go. When set to `false`, it will remove go from the system - assuming it was installed via this role and value for `go_bin_path` path is correct.\ngo_version                      | Defined to dynamically fetch the desired version to install. Defaults to: **1.22.4**\ngo_os                           | Defines OS type. Used for obtaining the correct type of binaries based on OS.\ngo_architecture_map             | Defines Architecture type. Used for obtaining the correct type of binaries based on Architecture.\ngo_dl_url                       | Defines URL to download the go binary from.\ngo_bin_path                     | Defined to dynamically set the appropriate path to store go binary into. Defaults to: **/usr/local** - which is sourced using a handler.\ngo_profile_template_export_line | Defined to set the line for export to path within a custom file generated into /etc/profile.d directory.\ngo_profile_template_path        | Directory in which to generate go's PATH export template to.\ngo_profile_template_source_file | Source template file for export of go's binary into PATH.\ngo_profile_template_dest_file   | Destination filename that will be placed in /etc/profile.d with go's PATH export as.\n\n## Dependencies\n\nNone\n\n## Example Playbook\n\nFor default behaviour of role (i.e. installation of **go**) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.go\n```\n\nFor customizing behavior of role (i.e. specifying the desired **go** version) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.go\n  vars:\n    go_version: 1.14.0\n    go_setup: true\n```\n\nFor customizing behavior of role (i.e. placing binary of **go** package in different location) in ansible playbooks.\n\n```yaml\n- hosts: servers\n  roles:\n    - darkwizard242.go\n  vars:\n    go_bin_path: /bin/\n```\n\n## License\n\n[MIT](https://github.com/darkwizard242/ansible-role-go/blob/master/LICENSE)\n\n## Author Information\n\nThis role was created by [Ali Muhammad](https://www.alimuhammad.dev/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwizard242%2Fansible-role-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarkwizard242%2Fansible-role-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarkwizard242%2Fansible-role-go/lists"}