From d312ffb24bef325eb4efa019c08a01c5e3636bb4 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Mon, 23 Dec 2024 23:46:06 +0100 Subject: [PATCH] Fix tentativo di problemi di permessi su Rocky Linux - 2 --- roles/zsh/tasks/config/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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"