Giter VIP home page Giter VIP logo

Comments (5)

z00m1n avatar z00m1n commented on July 17, 2024

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.

z00m1n avatar z00m1n commented on July 17, 2024

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.

oxyc avatar oxyc commented on July 17, 2024

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.

elliotweiser avatar elliotweiser commented on July 17, 2024

Hey @geerlingguy! I'm not sure this one is still relevant. Thoughts?

from ansible-role-homebrew.

geerlingguy avatar geerlingguy commented on July 17, 2024

Yeah, not having any issues anymore in the past year on three different Macs. Closing.

from ansible-role-homebrew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.