summaryrefslogtreecommitdiffstats
path: root/roles/rust/tasks
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-12-09 15:32:47 +0100
committerAhmed Abdelhalim <[email protected]>2025-12-09 15:32:47 +0100
commit46b139efbb69911cd10fc5af79e86c945c4bc9ff (patch)
tree2f6b593b04f092d3c6b4e4bba0e3b5457c637a9a /roles/rust/tasks
parent73dd618c73224b3ceac031102daf1bf85bc2c841 (diff)
Fix rustup ideompotent exec by removing the default bashrc conf
Diffstat (limited to 'roles/rust/tasks')
-rw-r--r--roles/rust/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/rust/tasks/main.yml b/roles/rust/tasks/main.yml
index 9332a16d..08874613 100644
--- a/roles/rust/tasks/main.yml
+++ b/roles/rust/tasks/main.yml
@@ -18,6 +18,12 @@
creates: "{{ ansible_env.HOME }}/.cargo/bin/cargo"
when: not rust_cargo_binary.stat.exists
+- name: "Remove cargo default shell profile modification"
+ ansible.builtin.lineinfile:
+ path: "{{ ansible_env.HOME }}/.bashrc"
+ line: '. "$HOME/.cargo/env"'
+ state: "absent"
+
- name: "Add cargo to shell profile"
ansible.builtin.blockinfile:
path: "{{ ansible_env.HOME }}/.bashrc"