From e2920fc42b8e1f770ccbc3f4daa4aa783b36ee1c Mon Sep 17 00:00:00 2001 From: uzurka Date: Thu, 9 Jan 2025 20:17:32 +0100 Subject: [PATCH] Fix git clone error --- tasks/oh-my-zsh-install.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasks/oh-my-zsh-install.yml b/tasks/oh-my-zsh-install.yml index 2a83f98..0bfb1fc 100644 --- a/tasks/oh-my-zsh-install.yml +++ b/tasks/oh-my-zsh-install.yml @@ -1,4 +1,9 @@ --- +- name: OMZ | Add Oh My Zsh folder to Git safe directory list + ansible.builtin.command: + cmd: git config --global --add safe.directory "{{ item.ansible_facts.user_home }}/{{ omz_install_directory }}" + with_items: "{{ paths.results }}" + - name: "OMZ | clone Oh My ZSH repo for user." git: repo: "{{ omz_git_repository }}" @@ -8,6 +13,7 @@ version: "master" register: "omz_clone" with_items: "{{ paths.results }}" + when: - name: "OMZ | set ownership on newly cloned repository." file: