2014-10-01 2 views
2


나는 Ansible이있는 서버가 있습니다. 내가 잠재적 인 기계의 셸에서 단일 명령을 실행하려고하면 모든 것이 좋다.
예 : 내 로컬 컴퓨터에서 SSH를 통해 명령을 실행하려고하면
ssh를 통해 실행 가능한 단일 명령

[email protected]:~$ ansible all -m ping 
192.168.1.10 | success >> { 
    "changed": false, 
    "ping": "pong" 
} 
192.168.1.11 | success >> { 
    "changed": false, 
    "ping": "pong" 
} 

는하지만, 오류가 발생했습니다.

[email protected]:~$ ssh [email protected] "ansible all -m ping -vvvv" 
[email protected]'s password: 
192.168.1.10 | FAILED => SSH encountered an unknown error. The output was: 
OpenSSH_5.9p1 Debian-5ubuntu1.4, OpenSSL 1.0.1 14 Mar 2012 
debug1: Reading configuration data /etc/ssh/ssh_config 
debug1: /etc/ssh/ssh_config line 19: Applying options for * 
debug1: auto-mux: Trying existing master 
debug1: Control socket "/home/omazilov/.ansible/cp/ansible-ssh-192.168.1.10-22-omazilov" does not exist 
debug2: ssh_connect: needpriv 0 
debug1: Connecting to 192.168.1.10 [192.168.1.10] port 22. 
debug2: fd 3 setting O_NONBLOCK 
debug1: fd 3 clearing O_NONBLOCK 
debug1: Connection established. 
debug3: timeout: 9932 ms remain after connect 
debug3: Incorrect RSA1 identifier 
debug3: Could not load "/home/omazilov/.ssh/id_rsa" as a RSA1 public key 
debug1: identity file /home/omazilov/.ssh/id_rsa type 1 
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048 
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048 
debug1: identity file /home/omazilov/.ssh/id_rsa-cert type -1 
debug1: identity file /home/omazilov/.ssh/id_dsa type -1 
debug1: identity file /home/omazilov/.ssh/id_dsa-cert type -1 
debug1: identity file /home/omazilov/.ssh/id_ecdsa type -1 
debug1: identity file /home/omazilov/.ssh/id_ecdsa-cert type -1 
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1.1 
debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1.1 pat OpenSSH* 
debug1: Enabling compatibility mode for protocol 2.0 
debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.4 
debug2: fd 3 setting O_NONBLOCK 
debug3: load_hostkeys: loading entries for host "192.168.1.10" from file "/home/omazilov/.ssh/known_hosts" 
debug3: load_hostkeys: found key type ECDSA in file /home/omazilov/.ssh/known_hosts:752 
debug3: load_hostkeys: loaded 1 keys 
debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521 
debug1: SSH2_MSG_KEXINIT sent 
debug1: SSH2_MSG_KEXINIT received 
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 
debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],[email protected],[email protected],ssh-rsa,ssh-dss 
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected] 
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected] 
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96 
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96 
debug2: kex_parse_kexinit: [email protected],zlib,none 
debug2: kex_parse_kexinit: [email protected],zlib,none 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256 
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected] 
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected] 
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96 
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96 
debug2: kex_parse_kexinit: none,[email protected] 
debug2: kex_parse_kexinit: none,[email protected] 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: mac_setup: found hmac-md5 
debug1: kex: server->client aes128-ctr hmac-md5 [email protected] 
debug2: mac_setup: found hmac-md5 
debug1: kex: client->server aes128-ctr hmac-md5 [email protected] 
debug1: sending SSH2_MSG_KEX_ECDH_INIT 
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY 
debug1: Server host key: ECDSA 4f:ae:27:26:3d:8e:22:0d:e0:95:ca:0c:19:17:47:37 
debug3: load_hostkeys: loading entries for host "192.168.1.10" from file "/home/omazilov/.ssh/known_hosts" 
debug3: load_hostkeys: found key type ECDSA in file /home/omazilov/.ssh/known_hosts:752 
debug3: load_hostkeys: loaded 1 keys 
debug1: Host '192.168.1.10' is known and matches the ECDSA host key. 
debug1: Found key in /home/omazilov/.ssh/known_hosts:752 
debug1: ssh_ecdsa_verify: signature correct 
debug2: kex_derive_keys 
debug2: set_newkeys: mode 1 
debug1: SSH2_MSG_NEWKEYS sent 
debug1: expecting SSH2_MSG_NEWKEYS 
debug2: set_newkeys: mode 0 
debug1: SSH2_MSG_NEWKEYS received 
debug1: Roaming not allowed by server 
debug1: SSH2_MSG_SERVICE_REQUEST sent 
debug2: service_accept: ssh-userauth 
debug1: SSH2_MSG_SERVICE_ACCEPT received 
debug2: key: /home/omazilov/.ssh/id_rsa (0x7f3d62750d70) 
debug2: key: /home/omazilov/.ssh/id_dsa ((nil)) 
debug2: key: /home/omazilov/.ssh/id_ecdsa ((nil)) 
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password 
debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password 
debug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey 
debug3: authmethod_lookup gssapi-with-mic 
debug3: remaining preferred: gssapi-keyex,hostbased,publickey 
debug3: authmethod_is_enabled gssapi-with-mic 
debug1: Next authentication method: gssapi-with-mic 
debug1: Unspecified GSS failure. Minor code may provide more information 
Cannot determine realm for numeric host address 

debug1: Unspecified GSS failure. Minor code may provide more information 
Cannot determine realm for numeric host address 

debug1: Unspecified GSS failure. Minor code may provide more information 


debug1: Unspecified GSS failure. Minor code may provide more information 
Cannot determine realm for numeric host address 

debug2: we did not send a packet, disable method 
debug3: authmethod_lookup gssapi-keyex 
debug3: remaining preferred: hostbased,publickey 
debug3: authmethod_is_enabled gssapi-keyex 
debug1: Next authentication method: gssapi-keyex 
debug1: No valid Key exchange context 
debug2: we did not send a packet, disable method 
debug3: authmethod_lookup publickey 
debug3: remaining preferred: ,publickey 
debug3: authmethod_is_enabled publickey 
debug1: Next authentication method: publickey 
debug1: Offering RSA public key: /home/omazilov/.ssh/id_rsa 
debug3: send_pubkey_test 
debug2: we sent a publickey packet, wait for reply 
debug1: Server accepts key: pkalg ssh-rsa blen 279 
debug2: input_userauth_pk_ok: fp c8:7b:ed:81:6d:83:d8:9b:55:7b:a7:3d:5c:53:a8:a5 
debug3: sign_and_send_pubkey: RSA c8:7b:ed:81:6d:83:d8:9b:55:7b:a7:3d:5c:53:a8:a5 
debug1: key_parse_private_pem: PEM_read_PrivateKey failed 
debug1: read PEM private key done: type <unknown> 
debug1: read_passphrase: can't open /dev/tty: No such device or address 
debug2: no passphrase given, try next key 
debug1: Trying private key: /home/omazilov/.ssh/id_dsa 
debug3: no such identity: /home/omazilov/.ssh/id_dsa 
debug1: Trying private key: /home/omazilov/.ssh/id_ecdsa 
debug3: no such identity: /home/omazilov/.ssh/id_ecdsa 
debug2: we did not send a packet, disable method 
debug1: No more authentication methods to try. 
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). 

192.168.1.11 | FAILED => SSH encountered an unknown error. The output was: 
OpenSSH_5.9p1 Debian-5ubuntu1.4, OpenSSL 1.0.1 14 Mar 2012 
debug1: Reading configuration data /etc/ssh/ssh_config 
debug1: /etc/ssh/ssh_config line 19: Applying options for * 
debug1: auto-mux: Trying existing master 
debug1: Control socket "/home/omazilov/.ansible/cp/ansible-ssh-192.168.1.11-22-omazilov" does not exist 
debug2: ssh_connect: needpriv 0 
debug1: Connecting to 192.168.1.11 [192.168.1.11] port 22. 
debug2: fd 3 setting O_NONBLOCK 
debug1: fd 3 clearing O_NONBLOCK 
debug1: Connection established. 
debug3: timeout: 9932 ms remain after connect 
debug3: Incorrect RSA1 identifier 
debug3: Could not load "/home/omazilov/.ssh/id_rsa" as a RSA1 public key 
debug1: identity file /home/omazilov/.ssh/id_rsa type 1 
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048 
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048 
debug1: identity file /home/omazilov/.ssh/id_rsa-cert type -1 
debug1: identity file /home/omazilov/.ssh/id_dsa type -1 
debug1: identity file /home/omazilov/.ssh/id_dsa-cert type -1 
debug1: identity file /home/omazilov/.ssh/id_ecdsa type -1 
debug1: identity file /home/omazilov/.ssh/id_ecdsa-cert type -1 
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1.1 
debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1.1 pat OpenSSH* 
debug1: Enabling compatibility mode for protocol 2.0 
debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.4 
debug2: fd 3 setting O_NONBLOCK 
debug3: load_hostkeys: loading entries for host "192.168.1.11" from file "/home/omazilov/.ssh/known_hosts" 
debug3: load_hostkeys: found key type ECDSA in file /home/omazilov/.ssh/known_hosts:988 
debug3: load_hostkeys: loaded 1 keys 
debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521 
debug1: SSH2_MSG_KEXINIT sent 
debug1: SSH2_MSG_KEXINIT received 
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 
debug2: kex_parse_kexinit: [email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,[email protected],[email protected],[email protected],[email protected],ssh-rsa,ssh-dss 
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected] 
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected] 
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96 
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96 
debug2: kex_parse_kexinit: [email protected],zlib,none 
debug2: kex_parse_kexinit: [email protected],zlib,none 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256 
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected] 
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected] 
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96 
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96 
debug2: kex_parse_kexinit: none,[email protected] 
debug2: kex_parse_kexinit: none,[email protected] 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: 
debug2: kex_parse_kexinit: first_kex_follows 0 
debug2: kex_parse_kexinit: reserved 0 
debug2: mac_setup: found hmac-md5 
debug1: kex: server->client aes128-ctr hmac-md5 [email protected] 
debug2: mac_setup: found hmac-md5 
debug1: kex: client->server aes128-ctr hmac-md5 [email protected] 
debug1: sending SSH2_MSG_KEX_ECDH_INIT 
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY 
debug1: Server host key: ECDSA 4f:ae:27:26:3d:8e:22:0d:e0:95:ca:0c:19:17:47:37 
debug3: load_hostkeys: loading entries for host "192.168.1.10" from file "/home/omazilov/.ssh/known_hosts" 
debug3: load_hostkeys: found key type ECDSA in file /home/omazilov/.ssh/known_hosts:988 
debug3: load_hostkeys: loaded 1 keys 
debug1: Host '192.168.1.10"' is known and matches the ECDSA host key. 
debug1: Found key in /home/omazilov/.ssh/known_hosts:988 
debug1: ssh_ecdsa_verify: signature correct 
debug2: kex_derive_keys 
debug2: set_newkeys: mode 1 
debug1: SSH2_MSG_NEWKEYS sent 
debug1: expecting SSH2_MSG_NEWKEYS 
debug2: set_newkeys: mode 0 
debug1: SSH2_MSG_NEWKEYS received 
debug1: Roaming not allowed by server 
debug1: SSH2_MSG_SERVICE_REQUEST sent 
debug2: service_accept: ssh-userauth 
debug1: SSH2_MSG_SERVICE_ACCEPT received 
debug2: key: /home/omazilov/.ssh/id_rsa (0x7f6409faad70) 
debug2: key: /home/omazilov/.ssh/id_dsa ((nil)) 
debug2: key: /home/omazilov/.ssh/id_ecdsa ((nil)) 
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password 
debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password 
debug3: preferred gssapi-with-mic,gssapi-keyex,hostbased,publickey 
debug3: authmethod_lookup gssapi-with-mic 
debug3: remaining preferred: gssapi-keyex,hostbased,publickey 
debug3: authmethod_is_enabled gssapi-with-mic 
debug1: Next authentication method: gssapi-with-mic 
debug1: Unspecified GSS failure. Minor code may provide more information 
Cannot determine realm for numeric host address 

debug1: Unspecified GSS failure. Minor code may provide more information 
Cannot determine realm for numeric host address 

debug1: Unspecified GSS failure. Minor code may provide more information 


debug1: Unspecified GSS failure. Minor code may provide more information 
Cannot determine realm for numeric host address 

debug2: we did not send a packet, disable method 
debug3: authmethod_lookup gssapi-keyex 
debug3: remaining preferred: hostbased,publickey 
debug3: authmethod_is_enabled gssapi-keyex 
debug1: Next authentication method: gssapi-keyex 
debug1: No valid Key exchange context 
debug2: we did not send a packet, disable method 
debug3: authmethod_lookup publickey 
debug3: remaining preferred: ,publickey 
debug3: authmethod_is_enabled publickey 
debug1: Next authentication method: publickey 
debug1: Offering RSA public key: /home/omazilov/.ssh/id_rsa 
debug3: send_pubkey_test 
debug2: we sent a publickey packet, wait for reply 
debug1: Server accepts key: pkalg ssh-rsa blen 279 
debug2: input_userauth_pk_ok: fp c8:7b:ed:81:6d:83:d8:9b:55:7b:a7:3d:5c:53:a8:a5 
debug3: sign_and_send_pubkey: RSA c8:7b:ed:81:6d:83:d8:9b:55:7b:a7:3d:5c:53:a8:a5 
debug1: key_parse_private_pem: PEM_read_PrivateKey failed 
debug1: read PEM private key done: type <unknown> 
debug1: read_passphrase: can't open /dev/tty: No such device or address 
debug2: no passphrase given, try next key 
debug1: Trying private key: /home/omazilov/.ssh/id_dsa 
debug3: no such identity: /home/omazilov/.ssh/id_dsa 
debug1: Trying private key: /home/omazilov/.ssh/id_ecdsa 
debug3: no such identity: /home/omazilov/.ssh/id_ecdsa 
debug2: we did not send a packet, disable method 
debug1: No more authentication methods to try. 
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password). 

<192.168.1.10> ESTABLISH CONNECTION FOR USER: omazilov 
<192.168.1.10> REMOTE_MODULE ping 
<192.168.1.10> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/omazilov/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', '192.168.1.10', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1412166408.61-193292311991754 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1412166408.61-193292311991754 && echo $HOME/.ansible/tmp/ansible-tmp-1412166408.61-193292311991754'"] 
<192.168.1.11> ESTABLISH CONNECTION FOR USER: omazilov 
<192.168.1.11> REMOTE_MODULE ping 
<192.168.1.11> EXEC ['ssh', '-C', '-tt', '-vvv', '-o', 'ControlMaster=auto', '-o', 'ControlPersist=60s', '-o', 'ControlPath=/home/omazilov/.ansible/cp/ansible-ssh-%h-%p-%r', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', '192.168.1.11', "/bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1412166408.61-7233830878884 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1412166408.61-7233830878884 && echo $HOME/.ansible/tmp/ansible-tmp-1412166408.61-7233830878884'"] 

Ansible의 설정 :

[defaults] 
hostfile  = /etc/ansible/hosts 
library  = /usr/share/ansible 
remote_tmp  = $HOME/.ansible/tmp 
pattern  = * 
forks   = 5 
poll_interval = 15 
sudo_user  = root 
#ask_sudo_pass = True 
#ask_pass  = True 
transport  = smart 
remote_port = 22 
module_lang = C 
gathering = implicit 
sudo_exe = sudo 
timeout = 10 
action_plugins  = /usr/share/ansible_plugins/action_plugins 
callback_plugins = /usr/share/ansible_plugins/callback_plugins 
connection_plugins = /usr/share/ansible_plugins/connection_plugins 
lookup_plugins  = /usr/share/ansible_plugins/lookup_plugins 
vars_plugins  = /usr/share/ansible_plugins/vars_plugins 
filter_plugins  = /usr/share/ansible_plugins/filter_plugins 

[accelerate] 
accelerate_port = 5099 
accelerate_timeout = 30 
accelerate_connect_timeout = 5.0 
accelerate_daemon_timeout = 30 

답변

8

우선 로컬 ssh'ing에 대한 사용 사례를 볼 수 없습니다 ansible 명령을 실행하려면 (I 로컬 호스트가 ansible.local 가정). 이것은 나에게 수수께끼이다!

ssh 연결에 암호를 사용하고 있으므로이 문제에 대해서는 자동 인증 전달이 없습니다. 하나를 제외 따라서 ansible 명령이 작동 할 수 없습니다

  • 가 로컬 연결에 ssh를-키를 사용 (추가하려면에 ~/.ssh/id_rsa.pub 당신의 ~/.ssh/authorized_keys)과의 -k 스위치를 사용하여 인증을
  • 를 전달 ssh -A를 사용 책임있는 명령
+1

고마워요. 지금은 매력있는 모든 일) – oleksii

관련 문제