dotfiles/playbooks/roles/rust/tasks/main.yml

53 lines
1.1 KiB
YAML

---
- name: Download Rust
get_url:
url: https://sh.rustup.rs
dest: /tmp/install_rust.sh
mode: 0755
- name: Install Rust
shell: /tmp/install_rust.sh -y
args:
creates: ~/.cargo
- name: Install ripgrep
shell: ~/.cargo/bin/cargo install ripgrep
args:
creates: ~/.cargo/bin/rg
when:
- rust_extras == true
- name: Install exa
shell: ~/.cargo/bin/cargo install exa
args:
creates: ~/.cargo/bin/exa
when:
- rust_extras == true
- name: Install just
shell: ~/.cargo/bin/cargo install just
args:
creates: ~/.cargo/bin/just
when:
- rust_extras == true
- name: Install cargo-update
shell: ~/.cargo/bin/cargo install cargo-update
args:
creates: ~/.cargo/bin/cargo-install-update
when:
- rust_extras == true
- name: Install bat
shell: ~/.cargo/bin/cargo install bat
args:
creates: ~/.cargo/bin/bat
when:
- rust_extras == true
- name: Install rls
shell: ~/.cargo/bin/rustup component add rls-preview rust-analysis rust-src
args:
creates: ~/.cargo/bin/rls
when:
- rust_extras == true