diff --git a/roles/inventory/linode/tasks/main.yml b/roles/inventory/linode/tasks/main.yml index b8af7d9..e5610bd 100644 --- a/roles/inventory/linode/tasks/main.yml +++ b/roles/inventory/linode/tasks/main.yml @@ -157,10 +157,8 @@ - name: Initialize Git if needed and configure ansible.builtin.shell: | - # Check if we're in a git repo, if not try to find the actual project directory if [ ! -d ".git" ]; then echo "Not in a git repository, checking for git in parent directories" - # Try to find the git root git_root=$(git rev-parse --show-toplevel 2>/dev/null || echo "") if [ -n "$git_root" ]; then cd "$git_root"