From 46b139efbb69911cd10fc5af79e86c945c4bc9ff Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Tue, 9 Dec 2025 15:32:47 +0100 Subject: Fix rustup ideompotent exec by removing the default bashrc conf --- roles/rust/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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" -- cgit v1.2.3