zorlin.rust

Ansible角色:Rust
- 从源代码安装Rust(当配置时)
- 从推荐的安装程序安装Rust
- 安装cargo包
- 支持20个Linux平台,与Go和Node角色相同。
需求
- curl
- gcc
角色变量
Rust的版本依赖于源代码安装。
rust_version: 1.31.0
默认情况下,该角色不会从源代码安装。
build_rust_from_source: false
在任何初始安装后,可以确保脚本通过以下方式更新Rust:
rust_update: false
要确保每次运行剧本时都进行干净的安装,可以使用:
rust_install_clean: false
为确保角色安装到你的shell配置文件中,可以指定它们:
shell_profiles:
- .bash_profile
此外,要安装任何cargo包,可以使用cargo_items
数组。
binary
属性是可选的,指定时会验证二进制安装。
cargo_items:
- name: ripgrep
binary: rg
安装
- 通过
ansible-galaxy install fubarhouse.rust
安装 - 将此角色添加到你的剧本中。
- 根据需要修改上面的变量。
许可证
MIT / BSD
作者信息
此角色由Karl Hepworth于2017年创建。
关于项目
Installs Rust and Cargo! (Fork of work by Karl Hepworth)
安装
ansible-galaxy install zorlin.rust
许可证
mit
下载
267
拥有者
Developer, sysadmin, distributed storage and free culture person. Still figuring out the rest.