Comments (5)
I noticed ownership of /usr/local/bin
after an initial run (as doc'd in #45) differs on a host controlled by Ansible from a host with a manual brew installation:
host with a manual brew installation (in this case, the Ansible control host):
ansible-control-host:~ username$ ls -lA /usr/local
total 0
drwxrwxr-x 19 username admin 646 Dec 7 15:41 Caskroom
drwxrwxr-x 19 username admin 646 Dec 2 11:26 Cellar
drwxrwxr-x 3 username admin 102 Nov 17 13:56 Frameworks
drwxrwxr-x 16 username admin 544 Nov 29 09:55 Homebrew
drwxrwxr-x 209 username admin 7106 Dec 12 09:16 bin
drwxrwxr-x 6 username admin 204 Nov 17 14:01 etc
drwxrwxr-x 13 username staff 442 Dec 12 09:16 include
drwxrwxr-x 32 username staff 1088 Dec 12 09:16 lib
drwxrwxr-x 19 username admin 646 Dec 12 09:16 opt
drwxrwxr-x 2 username admin 68 Nov 14 13:50 sbin
drwxrwxr-x 11 username admin 374 Dec 1 09:51 share
drwxrwxr-x 4 username admin 136 Nov 15 14:24 var
ansible-control-host:~ username$ ls -lA /usr/local/bin
total 1736
... (many symlinks with similar ownership) ...
lrwxr-xr-x 1 username admin 39 Nov 17 14:00 ansible -> ../Cellar/ansible/2.2.0.0_1/bin/ansible
lrwxr-xr-x 1 username admin 47 Nov 17 14:00 ansible-console -> ../Cellar/ansible/2.2.0.0_1/bin/ansible-console
lrwxr-xr-x 1 username admin 43 Nov 17 14:00 ansible-doc -> ../Cellar/ansible/2.2.0.0_1/bin/ansible-doc
lrwxr-xr-x 1 username admin 46 Nov 17 14:00 ansible-galaxy -> ../Cellar/ansible/2.2.0.0_1/bin/ansible-galaxy
lrwxr-xr-x 1 username admin 48 Nov 17 14:00 ansible-playbook -> ../Cellar/ansible/2.2.0.0_1/bin/ansible-playbook
lrwxr-xr-x 1 username admin 44 Nov 17 14:00 ansible-pull -> ../Cellar/ansible/2.2.0.0_1/bin/ansible-pull
lrwxr-xr-x 1 username admin 45 Nov 17 14:00 ansible-vault -> ../Cellar/ansible/2.2.0.0_1/bin/ansible-vault
...
lrwxr-xr-x 1 username admin 28 Nov 14 14:09 brew -> /usr/local/Homebrew/bin/brew
...
host controlled by Ansible with an automatic brew installation:
vm-osx-1012:~ ansible$ ls -lA /usr/local
total 0
drwxrwxr-x 3 ansible admin 102 Dec 12 03:08 Caskroom
drwxr-xr-x 6 ansible admin 204 Dec 12 03:07 Cellar
drwxrwxr-x 16 ansible admin 544 Dec 12 03:06 Homebrew
drwxrwxr-x 16 root admin 544 Dec 12 03:07 bin
drwxr-xr-x 3 ansible admin 102 Dec 12 03:06 etc
drwxr-xr-x 7 ansible admin 238 Dec 12 03:07 include
drwxr-xr-x 9 ansible admin 306 Dec 12 03:07 lib
drwxr-xr-x 6 ansible admin 204 Dec 12 03:07 opt
drwxr-xr-x 8 ansible admin 272 Dec 12 03:07 share
drwxr-xr-x 3 ansible admin 102 Dec 12 03:06 var
vm-osx-1012:~ ansible$ ls -lA /usr/local/bin
total 112
lrwxr-xr-x 1 ansible admin 27 Dec 12 03:07 ant -> ../Cellar/ant/1.9.7/bin/ant
lrwxr-xr-x 1 ansible admin 30 Dec 12 03:07 antRun -> ../Cellar/ant/1.9.7/bin/antRun
lrwxr-xr-x 1 ansible admin 33 Dec 12 03:07 antRun.pl -> ../Cellar/ant/1.9.7/bin/antRun.pl
lrwxr-xr-x 1 root admin 28 Dec 12 03:06 brew -> /usr/local/Homebrew/bin/brew
lrwxr-xr-x 1 ansible admin 32 Dec 12 03:07 ccmake -> ../Cellar/cmake/3.7.1/bin/ccmake
lrwxr-xr-x 1 ansible admin 31 Dec 12 03:07 cmake -> ../Cellar/cmake/3.7.1/bin/cmake
lrwxr-xr-x 1 ansible admin 37 Dec 12 03:07 cmakexbuild -> ../Cellar/cmake/3.7.1/bin/cmakexbuild
lrwxr-xr-x 1 ansible admin 43 Dec 12 03:07 complete-ant-cmd.pl -> ../Cellar/ant/1.9.7/bin/complete-ant-cmd.pl
lrwxr-xr-x 1 ansible admin 31 Dec 12 03:07 cpack -> ../Cellar/cmake/3.7.1/bin/cpack
lrwxr-xr-x 1 ansible admin 31 Dec 12 03:07 ctest -> ../Cellar/cmake/3.7.1/bin/ctest
lrwxr-xr-x 1 ansible admin 25 Dec 12 03:07 jq -> ../Cellar/jq/1.5_2/bin/jq
lrwxr-xr-x 1 ansible admin 41 Dec 12 03:07 onig-config -> ../Cellar/oniguruma/6.1.3/bin/onig-config
lrwxr-xr-x 1 ansible admin 33 Dec 12 03:07 runant.pl -> ../Cellar/ant/1.9.7/bin/runant.pl
lrwxr-xr-x 1 ansible admin 33 Dec 12 03:07 runant.py -> ../Cellar/ant/1.9.7/bin/runant.py
The pull request I'll send in a second fixes that.
from ansible-role-homebrew.
ooops, that pull request got mixed up with the one I sent for #45: #46.
Sorry about that; I'm more used to git flow using feature branches in a single repo instead of forking projects on github...
from ansible-role-homebrew.
Just documenting that I did not see this when I ran the role on a new laptop using macOS Sierra and without a pre-installed homebrew.
from ansible-role-homebrew.
Hey @geerlingguy! I'm not sure this one is still relevant. Thoughts?
from ansible-role-homebrew.
Yeah, not having any issues anymore in the past year on three different Macs. Closing.
from ansible-role-homebrew.
Related Issues (20)
- `Force update brew after installation.` task fails if `homebrew_user` is different than `ansible_user_id` HOT 1
- error trying to install cask HOT 1
- Update Homebrew Itself HOT 2
- Question: Can you please explain why we are not using the official install shell script? HOT 2
- Speedup brew and brew cask install/uninstall tasks HOT 2
- Install from Brewfile fails when mas Apps are included HOT 2
- Installing casks requiring sudo password? HOT 6
- When installing casks, anything with a dash errors. HOT 15
- Migrate from Travis CI to GitHub Actions for testing HOT 2
- Preparing for Ansible 2.10 Collections HOT 2
- `brew cask install` is deprecated in favour of `brew install --cask` HOT 6
- Error: Cannot install in Homebrew on ARM processor in Intel default prefix HOT 1
- homebrew_tap module fails when moving the homebrew_prefix and brew is not in the path HOT 3
- dot files repo only supports "master" branch HOT 1
- Running against macos 10.14.6 fails HOT 1
- installing is very slow. HOT 1
- Hanging at Ensure Homebrew parent directory has correct permissions HOT 1
- Install from Brewfile unable to find brew HOT 1
- execute local vs ssh HOT 1
- Deprecate this role in favor of the new geerlingguy.mac collection HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-role-homebrew.