geerlingguy / ansible-collection-mac

Collection of macOS automation tools for Ansible.
https://galaxy.ansible.com/geerlingguy/mac
MIT License
299 stars 113 forks source link

Error during: Ensure Homebrew is installed #94

Open Dante1349 opened 6 months ago

Dante1349 commented 6 months ago

I have this issue on some mac machines, but i didn't find a good way to resolve it. I deleted the homebrew directory on my mac, but now i have problems during the cask installation because the casks are not registered within the new homebrew installation. Is there any solution to this. This came up during the lastest macOS updates.

image (1)
jdm-twtr commented 1 month ago

I've got the same error:

fatal: [macmini62]: FAILED! => {"changed": false, "cmd": "/usr/bin/git clone --origin origin --depth 1 --branch master https://github.com/Homebrew/brew /opt/homebrew", "msg": "fatal: destination path '/opt/homebrew' already exists and is not an empty directory.", "rc": 128, "stderr": "fatal: destination path '/opt/homebrew' already exists and is not an empty directory.\n", "stderr_lines": ["fatal: destination path '/opt/homebrew' already exists and is not an empty directory."], "stdout": "", "stdout_lines": []}