Ansible role to configure Homebrew to be managed by multiple users members of the same group.
It is possible to choose to apply the permissions via ACL or POSIX or both.
Used in Splinter, an opinionated provisioning tool for macOS.
- Jeff Geerling's' geerlingguy.homebrew which is defined as Ansible Galaxy dependency
It was tested on the following versions:
- 2.9
Target MacOS 10.15 possibly earlier versions too (not yet tested)
Just include this role in your list. For example
- host: all
vars:
homebrew_group: "staff"
homebrew_fix_acl_permissions: yes
roles:
- marcomc.homebrew_multi_user
homebrew_user: "" # "{{ ansible_user_id }}" # only used for posix permissions
homebrew_group: "staff" # the name of the group you want to share the homebrew management
homebrew_fix_acl_permissions: yes
homebrew_fix_posix_permissions: no
homebrew_folders_base:
- Cellar
- Homebrew
- Frameworks
- Caskroom
- bin
- etc
- include
- lib
- opt
- sbin
- share
- share/zsh
- share/zsh/site-functions
- var
homebrew_folders_additional: []
This role has (not yet) a travis basic test (for github) only.
The application of POSIX permissions might fail on some existing symlink inside the /usr/local/. and that might prevent the application of ownership or permissions to the elements that follow the erroring element.
Marco Massari Calderone (c) 2020 - marco@marcomc.com