mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Fix rustup-init failing on fresh systems
~/.cargo/env does not exist before rustup-init runs — sourcing it upfront caused the task to fail on clean installs. Switch to a plain command invocation without the premature source. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -472,9 +472,9 @@
|
|||||||
path: "{{ user_home }}/.cargo/bin/rustc"
|
path: "{{ user_home }}/.cargo/bin/rustc"
|
||||||
register: rustup_initialized
|
register: rustup_initialized
|
||||||
|
|
||||||
- name: Run rustup-init with cargo env sourced
|
- name: Run rustup-init
|
||||||
ansible.builtin.shell:
|
ansible.builtin.command:
|
||||||
cmd: . ~/.cargo/env && rustup-init -y --no-modify-path
|
cmd: rustup-init -y --no-modify-path
|
||||||
creates: "{{ user_home }}/.cargo/bin/rustc"
|
creates: "{{ user_home }}/.cargo/bin/rustc"
|
||||||
become_user: "{{ username }}"
|
become_user: "{{ username }}"
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Reference in New Issue
Block a user