diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-10-23 09:48:04 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-10-23 09:48:04 +0300 |
commit | b6a43e167fc3c9ebd926f0fce3b9762d72c0a190 (patch) | |
tree | 19ff79df92e5324e53ebc39a8da4b0813782f804 /ansible/roles/rust-rustup | |
parent | 8ae18a3b4f09cf24d73d1944b2d3d6ca00dcb12b (diff) | |
download | ansibleness-b6a43e167fc3c9ebd926f0fce3b9762d72c0a190.tar.gz |
fix: really
Sponsored-by: author
Diffstat (limited to 'ansible/roles/rust-rustup')
-rw-r--r-- | ansible/roles/rust-rustup/tasks/main.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ansible/roles/rust-rustup/tasks/main.yml b/ansible/roles/rust-rustup/tasks/main.yml index 1e7c2a7..041e912 100644 --- a/ansible/roles/rust-rustup/tasks/main.yml +++ b/ansible/roles/rust-rustup/tasks/main.yml @@ -14,10 +14,10 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh sudo -u liw -i sh /tmp/rustup.sh -y --no-modify-path fi - sudo -u liw -i /home/liw/.cargo/bin/rustup rustup component add clippy rust-src + sudo -u liw -i /home/liw/.cargo/bin/rustup component add clippy rust-src - name: "cargo install applications" when: rustup_cargo_install is defined args: warn: no shell: | - sudo -i -u liw cargo install {{ rustup_cargo_install }} + sudo -i -u liw sh -c '. $HOME/.cargo/env && cargo install {{ rustup_cargo_install }}' |