This role downloads and runs the rustup-init.sh script from rustup.rs to install Rust.
It uses the Ansible built-in get_url
module for downloading
the script instead of cURL.
Do not run this role as root as it's intended for installing rust for a single user only.
rustup
will modify your shell profile files, but I prefer to keep
my configuration in the rc files and manage with my dotfiles.
To avoid rustup-init
from modifying path during install:
rust_modify_path: false
- name: Install Rust
hosts: localhost
become: false
roles:
- role: markosamuli.rust
tags: rust