Tôi đã cài đặt Ansible 1.2.3 trên Ubuntu Precise 64.Lỗi khi chạy ansible-playbook
Chạy ansible-playbook -i ansible_hosts playbook.yml
cho tôi lỗi này:
ERROR: problem running ansible_hosts --list ([Errno 8] Exec format error)
Dưới đây là nội dung của ansible_hosts
:
[development]
localhost ansible_connection=local
và playbook.yml
:
---
- hosts: development
sudo: yes
tasks:
- name: install curl
apt: pkg=curl update_cache=yes
Tôi có thể thực hiện công việc này bằng cách nào?
Điều này phù hợp với tôi. Tại sao không được phép thực thi quyền trên các tệp đó? – user231118
Câu hỏi hay. Không chắc chắn –
Quyền thi hành cho biết có thể bạn không muốn tệp hàng tồn kho động: http://stackoverflow.com/questions/26859360/cant-use-ansible-inventory-file-because-it-is-executable/26863968?noredirect = 1 # comment42326480_26863968 –