【发布时间】:2018-05-18 05:42:50
【问题描述】:
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
这是预期的还是我的安装有问题?
【问题讨论】:
标签: ansible osx-yosemite ansible-galaxy