diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-03-04 00:47:09 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-03-04 00:49:46 +0100 |
| commit | 570555cf2d464078190240df724ca4f148c72b48 (patch) | |
| tree | 44f50edc747c8f84cba74a392df6110981789617 /roles/rust/meta | |
| parent | cdbb782ab1aa2c337fcfeca0693ac8e22582d186 (diff) | |
Refactor language roles to use mise and install multiple version support
Diffstat (limited to 'roles/rust/meta')
| -rw-r--r-- | roles/rust/meta/argument_specs.yml | 13 | ||||
| -rw-r--r-- | roles/rust/meta/main.yml | 5 |
2 files changed, 8 insertions, 10 deletions
diff --git a/roles/rust/meta/argument_specs.yml b/roles/rust/meta/argument_specs.yml index 93ebc36e..612812b6 100644 --- a/roles/rust/meta/argument_specs.yml +++ b/roles/rust/meta/argument_specs.yml @@ -1,15 +1,14 @@ --- argument_specs: main: - short_description: "Install Rust via rustup on Linux distributions" - description: "Install Rust via rustup on Linux distributions" options: - rust_toolchain: - type: "str" - description: "The Rust toolchain to install (stable, beta, nightly)" - default: "stable" + rust_versions: + type: "list" + description: "Rust versions to install via mise (e.g. 'stable', 'nightly')" + elements: "str" + default: ["stable"] rust_components: type: "list" - description: "Additional rustup components to install" + description: "Rust components to install via rustup (applied to the active toolchain)" elements: "str" default: [] diff --git a/roles/rust/meta/main.yml b/roles/rust/meta/main.yml index 8afa47c1..af2fe6fa 100644 --- a/roles/rust/meta/main.yml +++ b/roles/rust/meta/main.yml @@ -1,10 +1,9 @@ --- dependencies: - - role: "bash" - - role: "curl" + - role: "mise" galaxy_info: author: "a14m" - description: "Install Rust via rustup on Linux distributions" + description: "Install Rust (versions) via mise on Linux distributions" license: "MIT" min_ansible_version: "2.18" platforms: |
