tl;dr
= OS X 用户建议如何解决此权限错误?
我在 OS X 10.10.1 上,我最近安装了运行以下内容的 Ansible:
sudo pip install ansible --quiet
sudo pip install ansible --upgrade
我想从一个星系角色开始安装自制软件,然后运行这个,但出现以下错误:
$ ansible-galaxy install geerlingguy.homebrew
- downloading role 'homebrew', owned by geerlingguy
- downloading role from https://github.com/geerlingguy/ansible-role-homebrew/archive/1.0.1.tar.gz
- extracting geerlingguy.homebrew to /etc/ansible/roles/geerlingguy.homebrew
- error: you do not have permission to modify files in /etc/ansible/roles/geerlingguy.homebrew
- geerlingguy.homebrew was NOT installed successfully.
- you can use --ignore-errors to skip failed roles.
虽然我看到/etc
它归 root 所有,但我没有在文档中看到任何说明我应该做chmod
任何事情的注释。
以供参考:
$ ansible --version
ansible 1.8.2
configured module search path = None
这是预期的还是我的安装有问题?