Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部署秘钥 显示一直是wait..... #12

Open
glily opened this issue Feb 24, 2016 · 6 comments
Open

部署秘钥 显示一直是wait..... #12

glily opened this issue Feb 24, 2016 · 6 comments

Comments

@glily
Copy link

glily commented Feb 24, 2016

直接后台运行 $ansible -i /home/ansible/hosts.txt all -u ansible -m ping -k
SSH password:
192.168.163.140 | UNREACHABLE! => {
"changed": false,
"msg": "ERROR! SSH Error: data could not be sent to the remote host. Make sure this host can be reached over ssh",
"unreachable": true
ssh一直连接不上,但是直接ssh [email protected]是成功的,防火墙,selinux也都关闭了,还是不行,请教高手!感激不尽。

@kenhq03
Copy link

kenhq03 commented Feb 25, 2016

也是部署密钥一直wait,在uwsg的log里面报下面错误
Internal Server Error: /ansible/test/deploykey
Traceback (most recent call last):
File "/home/ansible/envansible/lib/python2.6/site-packages/django/core/handlers/base.py", line 114, in get_response
response = wrapped_callback(request, _callback_args, *_callback_kwargs)
File "./desktop/apps/ansible/views.py", line 777, in deploykey
hostlist = get_hosts(inventory, hosts)
File "./desktop/apps/ansible/tasks.py", line 319, in get_hosts
inventory = Inventory(hostfile)
TypeError: init() takes at least 3 arguments (2 given)
[pid: 223|app: 0|req: 165/165] 192.168.105.9 () {50 vars in 1156 bytes} [Thu Feb 25 18:03:05 2016] POST /ansible/test/deploykey => generated 10998 bytes in 100 msecs (HTTP/1.1 500) 3 headers in 120 bytes (1 switches on core 0)

@fzsens
Copy link

fzsens commented Jan 24, 2017

更换一下ansible的版本到1.9.X

@dtbdtb
Copy link

dtbdtb commented Mar 9, 2017

my is ansible 2.2.1.0,but same problem
so ,how deep this problem,can writer give us some hints??

@weinshun
Copy link

我也是这个问题,求哪位已经解决的说一下。

1 similar comment
@uziomg
Copy link

uziomg commented Apr 21, 2017

我也是这个问题,求哪位已经解决的说一下。

@tjlygdx
Copy link

tjlygdx commented Apr 25, 2017

python-ansible 1.9.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants