ansible error:failed to resolve remote temporary directory from ansible-tmp

3141 단어 troubleshooting
시스템 버전
LSB Version:	:base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID:	CentOS
Description:	CentOS release 6.6 (Final)
Release:	6.6
Codename:	Final

openssl openssh 버전
openssl-1.0.1e-30.el6.x86_64
openssh-server-5.3p1-104.el6.x86_64
openswan-2.6.32-37.el6.x86_64
openssh-5.3p1-104.el6.x86_64
openssh-clients-5.3p1-104.el6.x86_64
openssl-devel-1.0.1e-30.el6.x86_64
opensp-1.5.2-12.1.el6.x86_64

ansible 버전
ansible 2.2.0 (devel 73f06e67df) last updated 2016/07/28 17:06:38 (GMT +800)
  lib/ansible/modules/core: (detached HEAD 24db4de245) last updated 2016/07/28 17:14:34 (GMT +800)
  lib/ansible/modules/extras: (detached HEAD db979dde74) last updated 2016/07/28 17:15:11 (GMT +800)
  config file =
  configured module search path = Default w/o overrides

대상 기기는 ssh key 로그인이 필요하고 key는 비밀번호를 입력해야 합니다
현상: 처음 연결을 시작할 때 항상 오류를 보고합니다.두 번째는 정상적으로 집행할 수 있다
[root@test ip]# ansible -vvvv test -e 'ansible_ssh_user=root' --private-key=/root/bin/.key/id_rsa -m ping
No config file found; using defaults
Loaded callback minimal of type stdout, v2.0
Using module file /root/ansible/lib/ansible/modules/core/system/ping.py
 ESTABLISH SSH CONNECTION FOR USER: root
 SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/root/bin/.key/id_rsa"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/ansible-ssh-%h-%p-%r xx.xx.xx.xx '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1470306129.03-107348505591642 `" && echo ansible-tmp-1470306129.03-107348505591642="` echo $HOME/.ansible/tmp/ansible-tmp-1470306129.03-107348505591642 `" ) && sleep 0'"'"''
Enter passphrase for key '/root/bin/.key/id_rsa':
xx.xx.xx.xx | FAILED! => {
    "failed": true,
    "msg": "failed to resolve remote temporary directory from ansible-tmp-1470306129.03-107348505591642: `( umask 77 && mkdir -p \"` echo $HOME/.ansible/tmp/ansible-tmp-1470306129.03-107348505591642 `\" && echo ansible-tmp-1470306129.03-107348505591642=\"` echo $HOME/.ansible/tmp/ansible-tmp-1470306129.03-107348505591642 `\" )` returned empty string"
}

외국의 방법을 많이 시도해 봤는데 해결이 안 됐어요. 그 붕괴는요.
https://github.com/ansible/ansible/issues/13876
https://github.com/ansible/ansible/issues/14465
https://github.com/FreiFunkMuenster/ansible-ffms/issues/38
머리를 두드리고, Openssh Openssl을 업그레이드해서...
openssh-clients-5.3p1-118.1.el6_8.x86_64
openssl-1.0.1e-48.el6_8.1.x86_64
openssh-5.3p1-118.1.el6_8.x86_64
openssl-devel-1.0.1e-48.el6_8.1.x86_64
openssh-server-5.3p1-118.1.el6_8.x86_64

현상이 사라지다.TOT

좋은 웹페이지 즐겨찾기