【发布时间】:2017-04-17 21:47:42
【问题描述】:
我正在尝试从在 Mac OS X v10.11.6 上运行的 Ansible v2.2.1 中的角色执行以下任务,但我遇到了权限问题(复制如下):
- name: Create the test scripts
copy:
src: "usr_bin_{{item}}"
dest: "/usr/bin/{{item}}"
owner: root
group: wheel
mode: 0755
with_items: ["abc", "def", "ghi"]
become: true
become_method: sudo
become_user: root
错误
failed: [localhost] (item=abc) => {"checksum": "44b300f4a9334ca0e34d0e5b3e2c121c76214f7c", "failed": true, "item": "abc", "msg": "Destination /usr/bin not writable"}
failed: [localhost] (item=def) => {"checksum": "dcd44e71b93f303c5d9abfcecd48c8637eabeeaa", "failed": true, "item": "def", "msg": "Destination /usr/bin not writable"}
failed: [localhost] (item=ghi) => {"checksum": "b9c28df8772702ba9b4b7d05e24c972aa536bdc3", "failed": true, "item": "ghi", "msg": "Destination /usr/bin not writable"}
【问题讨论】:
标签: macos ansible osx-elcapitan ansible-2.x