fubarhouse.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
为了确保每次playbook运行时清洁安装,您可以使用:
rust_install_clean: false
为了确保角色安装到您的shell配置文件,您可以指定它们:
shell_profiles:
- .bash_profile
此外,要安装任何cargo包,您可以使用cargo_items
数组。
binary
属性是可选的,当指定时,将验证二进制安装。
cargo_items:
- name: ripgrep
binary: rg
安装
- 使用
ansible-galaxy install fubarhouse.rust
安装 - 将此角色添加到您的playbook中。
- 根据需要修改上述变量。
许可证
MIT / BSD
作者信息
此角色由Karl Hepworth于2017年创建。
安装
ansible-galaxy install fubarhouse.rust
许可证
mit
下载
3.5k
拥有者
Lover of all things open source and computers - both hardware and software. My opinions are my own.