dotfiles/playbooks/roles/rust/tasks/main.yml
Anthony Cicchetti 279cfb8879 rust-analyzer
2022-08-01 08:39:32 -04:00

137 lines
2.8 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: Add Rust-Analyzer component
shell: ~/.cargo/bin/rustup component add rust-analyzer
- name: Link cargo-config
file:
src: "{{ role_path }}/files/config"
dest: ~/.cargo/config
state: link
- 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 rust-analyzer
shell: ~/.cargo/bin/rustup +nightly component add rust-analyzer-preview
when:
- rust_extras == true
- name: Install starship
shell: ~/.cargo/bin/cargo install starship
args:
creates: ~/.cargo/bin/starship
when:
- rust_extras == true
- name: Install topgrade
shell: ~/.cargo/bin/cargo install topgrade
args:
creates: ~/.cargo/bin/topgrade
when:
- rust_extras == true
- name: Install fd-find
shell: ~/.cargo/bin/cargo install fd-find
args:
creates: ~/.cargo/bin/fd
when:
- rust_extras == true
- name: Install bandwhich
shell: ~/.cargo/bin/cargo install bandwhich
args:
creates: ~/.cargo/bin/bandwhich
when:
- rust_extras == true
- name: Install kondo
shell: ~/.cargo/bin/cargo install kondo
args:
creates: ~/.cargo/bin/kondo
when:
- rust_extras == true
- name: Install zoxide
shell: ~/.cargo/bin/cargo install zoxide
args:
creates: ~/.cargo/bin/zoxide
when:
- rust_extras == true
- name: Install skim
shell: ~/.cargo/bin/cargo install skim
args:
creates: ~/.cargo/bin/sk
when:
- rust_extras == true
- name: Install delta
shell: ~/.cargo/bin/cargo install git-delta
args:
creates: ~/.cargo/bin/delta
when:
- rust_extras == true
- name: Install dog
shell: ~/.cargo/bin/cargo install --git https://github.com/ogham/dog dog
args:
creates: ~/.cargo/bin/dog
when:
- rust_extras == true
- name: Install mcfly
shell: ~/.cargo/bin/cargo install mcfly
args:
creates: ~/.cargo/bin/mcfly
when:
- rust_extras == true
- name: Install zellij
shell: ~/.cargo/bin/cargo install zellij
args:
creates: ~/.cargo/bin/zellij
when:
- rust_extras == true