diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-12-09 15:32:47 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-12-09 15:32:47 +0100 |
| commit | 46b139efbb69911cd10fc5af79e86c945c4bc9ff (patch) | |
| tree | 2f6b593b04f092d3c6b4e4bba0e3b5457c637a9a /roles | |
| parent | 73dd618c73224b3ceac031102daf1bf85bc2c841 (diff) | |
Fix rustup ideompotent exec by removing the default bashrc conf
Diffstat (limited to 'roles')
| -rw-r--r-- | roles/rust/tasks/main.yml | 6 |
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" |
