summaryrefslogtreecommitdiffstats
path: root/roles
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
commita089ff4c071dee13d030ac7a4ede1ee81d52fd5f (patch)
tree2f6b593b04f092d3c6b4e4bba0e3b5457c637a9a /roles
parent8efce68e05d70e21845562a1734b00bbf10c98e1 (diff)
Fix rustup ideompotent exec by removing the default bashrc conf
Diffstat (limited to 'roles')
-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"