Ansible "Hello world" problem

66 views
Skip to first unread message

Andrey

unread,
May 21, 2015, 1:46:12 PM5/21/15
to ansible...@googlegroups.com, str...@mail.ru
Hello!

I installed Ansible on Debian.

When I try to access cisco device:

"ansible all -m ping -c ssh -u test --ask-pass"

 I get an error:

SSH password:
192.168.150.39 | FAILED >> {
    "failed": true,
    "msg": "\r\nerror: unknown command: /bin/sh\r\nOpenSSH_6.7p1 Debian-5, OpenSSL 1.0.1k 8 Jan 2015\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug1: mux_client_request_session: master session id: 2\r\nShared connection to 192.168.150.39 closed.\r\n",
    "parsed": false
}

My Ansible config file:
***************************************************************************
root@debian:~/ansible/files# less /etc/ansible/ansible.cfg
inventory      = /etc/ansible/hosts
#library        = /usr/share/my_modules/
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
#host_key_checking = False
module_lang    = C
private_key_file = ~/ansible/files/workstation.pub

***************************************************************
My ssh config:

root@debian:~/ansible/files# less /etc/ssh/ssh_config

Host *

  IdentityFile ~/.ssh/identity
   IdentityFile ~/.ssh/id_rsa
   IdentityFile ~/.ssh/id_dsa
   Port 22
   Protocol 2,1
   Cipher 3des
   Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
   MACs hmac-md5,hmac-sha1,uma...@openssh.com,hmac-ripemd160
   SendEnv LANG LC_*
    HashKnownHosts yes
    GSSAPIAuthentication yes
    GSSAPIDelegateCredentials no
***********************************************************************


Please help me with my problem!

Thanks.
Reply all
Reply to author
Forward
0 new messages