ansible_role_antigen icon indicating copy to clipboard operation
ansible_role_antigen copied to clipboard

Homebrew permissions

Open steveoh opened this issue 4 years ago • 2 comments

I am trying to use this role on osx catalina but having some issues. Would you steer me in the right direction.

Error: Running Homebrew as root is extremely dangerous and no longer supported.\nAs Homebrew does not drop privileges on installation you would be giving all\nbuild scripts full access to your system.

from another repo...

https://github.com/viasite-ansible/ansible-role-zsh/blob/master/tasks/install.yml#L11-L12

Does this only work with linux?

steveoh avatar May 20 '20 15:05 steveoh

I got the same today and defaulted back to the this role instead: https://github.com/gantsign/ansible-role-oh-my-zsh

It looks like the issue was previously fixed there in this commit. Maybe I can make a PR to include a similar fix here.

hawksight avatar May 18 '21 16:05 hawksight

a workaround is to have:

vars:
        ansible_become: "{{ ansible_distribution != 'MacOSX' }}"

in the role

rluvaton avatar Feb 08 '22 20:02 rluvaton