You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently struggeling setting up a virtualized Macs using anka using packer and the mac-dev-playbook.
The error I always get is:
TASK [geerlingguy.mac.homebrew : Force update brew after installation.] ********
FAILED! => {"changed": true, "cmd": ["/usr/local/bin/brew", "update", "--force"], "delta": "0:00:00.320867", "end": "2022-02-17 01:30:44.316312", "msg": "non-zero return code", "rc": 1, "start": "2022-02-17 01:30:43.995445", "stderr": "Error: /usr/local/Cellar is not writable. You should change the\nownership and permissions of /usr/local/Cellar back to your\nuser account:\n sudo chown -R $(whoami) /usr/local/Cellar", "stderr_lines": ["Error: /usr/local/Cellar is not writable. You should change the", "ownership and permissions of /usr/local/Cellar back to your", "user account:", " sudo chown -R $(whoami) /usr/local/Cellar"], "stdout": "", "stdout_lines": []}
I want a fully automated setup so to change the ownership of the cellar folder manually is no option.
After searching through this collection I found the owner: root setting for intel Macs. I am wondering, why there's a difference between the m1 Homebrew folder ownership and the intel Homebrew ownership? Should these not be the same?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am currently struggeling setting up a virtualized Macs using anka using packer and the mac-dev-playbook.
The error I always get is:
I want a fully automated setup so to change the ownership of the cellar folder manually is no option.
After searching through this collection I found the owner: root setting for intel Macs. I am wondering, why there's a difference between the m1 Homebrew folder ownership and the intel Homebrew ownership? Should these not be the same?
M1 Mac
ansible-collection-mac/roles/homebrew/tasks/main.yml
Lines 8 to 14 in dabfc75
Intel Mac
ansible-collection-mac/roles/homebrew/tasks/main.yml
Lines 18 to 24 in dabfc75
Maybe issue #36 has something todo with it, but I am not sure.
I am quite new in using ansible and this playbook, so sorr if this is a silly question. :)
Beta Was this translation helpful? Give feedback.
All reactions