1
0
Fork 0
dotfiles/ansible/roles/packages/tasks/rust.yml
2023-10-20 17:11:20 +02:00

33 lines
712 B
YAML

---
# rust install, shamelessly stolen from https://waylonwalker.com/install-rust/
- name: Check if cargo is installed
shell: ls ~/.cargo
register: cargo_exists
ignore_errors: yes
- name: Download rust installer
when: cargo_exists is failed
get_url:
url: https://sh.rustup.rs
dest: /tmp/sh.rustup.rs
mode: '0755'
force: 'yes'
- name: Install rust and cargo
when: cargo_exists is failed
shell: /tmp/sh.rustup.rs -y
- name: Install cargo packages
community.general.cargo:
name:
- git-delta
- dotter
- bottom
- git-cliff
- topgrade
- bat
- cargo-update
- cargo-cache
- garden-tools
- difftastic
state: latest