summaryrefslogtreecommitdiffstats
path: root/roles/go/meta
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-03-04 00:47:09 +0100
committerAhmed Abdelhalim <[email protected]>2026-03-04 00:49:46 +0100
commit570555cf2d464078190240df724ca4f148c72b48 (patch)
tree44f50edc747c8f84cba74a392df6110981789617 /roles/go/meta
parentcdbb782ab1aa2c337fcfeca0693ac8e22582d186 (diff)
Refactor language roles to use mise and install multiple version support
Diffstat (limited to 'roles/go/meta')
-rw-r--r--roles/go/meta/argument_specs.yml11
-rw-r--r--roles/go/meta/main.yml2
2 files changed, 6 insertions, 7 deletions
diff --git a/roles/go/meta/argument_specs.yml b/roles/go/meta/argument_specs.yml
index 3e518135..803fa6ea 100644
--- a/roles/go/meta/argument_specs.yml
+++ b/roles/go/meta/argument_specs.yml
@@ -1,10 +1,9 @@
---
argument_specs:
main:
- short_description: "Install Go on Linux distributions"
- description: "Install Go on Linux distributions"
options:
- go_version:
- type: "str"
- description: "Default go version to install"
- default: "latest"
+ go_versions:
+ type: "list"
+ description: "Go versions to install via mise (e.g. 'latest', '1.24')"
+ elements: "str"
+ default: ["latest"]
diff --git a/roles/go/meta/main.yml b/roles/go/meta/main.yml
index 9990d138..946d0801 100644
--- a/roles/go/meta/main.yml
+++ b/roles/go/meta/main.yml
@@ -3,7 +3,7 @@ dependencies:
- role: "mise"
galaxy_info:
author: "a14m"
- description: "Install Go via mise on Linux distributions"
+ description: "Install Go (versions) via mise on Linux distributions"
license: "MIT"
min_ansible_version: "2.18"
platforms: