diff --git a/roles/zsh/tasks/config/main.yml b/roles/zsh/tasks/config/main.yml index 279fddf..fea75d0 100644 --- a/roles/zsh/tasks/config/main.yml +++ b/roles/zsh/tasks/config/main.yml @@ -22,6 +22,12 @@ mode: '0755' become_user: "{{ additional_user }}" + - name: Removing previous file if present + ansible.builtin.file: + path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.zshrc" + state: absent + become_user: "{{ additional_user }}" + - name: Linking main file ansible.builtin.file: src: "{{ dotfdir }}/zshrc"