dotfiles/playbooks/roles/rust/tasks/main.yml
Anthony Cicchetti 0970a601af We back to skim
2020-10-19 10:17:13 -04:00

121 lines
2.4 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: 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 blindfold
shell: ~/.cargo/bin/cargo install blindfold
args:
creates: ~/.cargo/bin/blindfold
when:
- rust_extras == true
- name: Install kondo
shell: ~/.cargo/bin/cargo install kondo
args:
creates: ~/.cargo/bin/kondo
when:
- rust_extras == true
- name: Install silicon
shell: ~/.cargo/bin/cargo install silicon
args:
creates: ~/.cargo/bin/silicon
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