Files
dev-machine/roles/rust/tasks/main.yml
2025-11-28 12:34:15 +01:00

10 lines
391 B
YAML

- name: Check if rustup is installed already
stat:
path: "{{ lookup('env', 'HOME') }}/.local/share/cargo/bin/rustup"
register: rustup_status
- name: Ensure rustup
# Note, that the path is not modified, since my dotfiles setup did that already!
shell: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path
when: not rustup_status.stat.exists