[英]error setting up nginx provisioning on vagrant with virtualbox on Ubuntu
[英]Ubuntu error with ansible provisioning
這可能很簡單。 我在Ubuntu 12.04上使用ansible-playbook運行資源調配:
ansible-playbook web.yml
並得到以下錯誤:
ERROR: The file ./hosts is marked as executable, but failed to execute correctly.
If this is not supposed to be an executable script, correct this with `chmod -x ./hosts`.
因此,我嘗試更改該文件的權限,但看起來我無法做到這一點。 首先,我通過運行ls -l hosts獲得當前權限的列表,並顯示以下信息:
-rwxrwxrwx 1 vagrant vagrant 413 Nov 10 14:55 hosts
我試圖使用chmod -x主機刪除-x ,但是此后它向我返回相同的權限列表,並且配置錯誤仍然存在。
這是我的主機文件:
[web]
web.local ansible_ssh_host=10.42.1.90 ansible_ssh_port=22
[storage]
web-storage.local ansible_ssh_host=10.42.1.91 ansible_ssh_port=22
cr-stats.local ansible_ssh_host=10.42.1.92 ansible_ssh_port=22
cr-cache.local ansible_ssh_host=10.42.1.93 ansible_ssh_port=22
[local]
web.local
web-storage.local
cr-stats.local
cr-cache.local
#[remote]
和web.yml:
---
- hosts: web
sudo: True
vars:
deploy_app_name: web
roles:
- role: Stouts.redis
- role: Stouts.python
- role: Stouts.deploy
- role: Stouts.nginx
- role: Stouts.wsgi
- role: Stouts.celery
- role: Stouts.supervisor
- hosts: storage
sudo: True
vars:
deploy_app_name: web
roles:
- role: Stouts.redis
有人可以幫忙嗎?
這將刪除x。
chmod 666 ./hosts
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.