Hi, 

I'm new to Ansible.

I've installed ansible on my ubuntu 16.04: 

$ ansible --version
ansible 2.0.0.2
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides

When I try to test whether ansible is able to connect with my test node, I 
get this error:

$ ansible all -i hosts -m ping -u sad -vvvvvv
Using /etc/ansible/ansible.cfg as config file
Loaded callback minimal of type stdout, v2.0
<10.147.1.179> ESTABLISH SSH CONNECTION FOR USER: sad
<10.147.1.179> SSH: ansible.cfg set ssh_args: 
(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
<10.147.1.179> SSH: ansible_password/ansible_ssh_pass not set: 
(-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<10.147.1.179> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u 
set: (-o)(User=sad)
<10.147.1.179> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<10.147.1.179> SSH: PlayContext set ssh_common_args: ()
<10.147.1.179> SSH: PlayContext set ssh_extra_args: ()
<10.147.1.179> SSH: found only ControlPersist; added ControlPath: 
(-o)(ControlPath=/home/sad/.ansible/cp/ansible-ssh-%h-%p-%r)
<10.147.1.179> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o 
ControlPersist=60s -o KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o User=sad -o ConnectTimeout=10 -o 
ControlPath=/home/sad/.ansible/cp/ansible-ssh-%h-%p-%r -tt 10.147.1.179 '( 
umask 22 && mkdir -p "$( echo 
$HOME/.ansible/tmp/ansible-tmp-1476625987.55-130642926662092 )" && echo "$( 
echo $HOME/.ansible/tmp/ansible-tmp-1476625987.55-130642926662092 )" )'
<10.147.1.179> PUT /tmp/tmpU6dK6I TO 
/home/sad/.ansible/tmp/ansible-tmp-1476625987.55-130642926662092/ping
<10.147.1.179> SSH: ansible.cfg set ssh_args: 
(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
<10.147.1.179> SSH: ansible_password/ansible_ssh_pass not set: 
(-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<10.147.1.179> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u 
set: (-o)(User=sad)
<10.147.1.179> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<10.147.1.179> SSH: PlayContext set ssh_common_args: ()
<10.147.1.179> SSH: PlayContext set sftp_extra_args: ()
<10.147.1.179> SSH: found only ControlPersist; added ControlPath: 
(-o)(ControlPath=/home/sad/.ansible/cp/ansible-ssh-%h-%p-%r)
<10.147.1.179> SSH: EXEC sftp -b - -C -vvv -o ControlMaster=auto -o 
ControlPersist=60s -o KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o User=sad -o ConnectTimeout=10 -o 
ControlPath=/home/sad/.ansible/cp/ansible-ssh-%h-%p-%r '[10.147.1.179]'
<10.147.1.179> ESTABLISH SSH CONNECTION FOR USER: sad
<10.147.1.179> SSH: ansible.cfg set ssh_args: 
(-o)(ControlMaster=auto)(-o)(ControlPersist=60s)
<10.147.1.179> SSH: ansible_password/ansible_ssh_pass not set: 
(-o)(KbdInteractiveAuthentication=no)(-o)(PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey)(-o)(PasswordAuthentication=no)
<10.147.1.179> SSH: ANSIBLE_REMOTE_USER/remote_user/ansible_user/user/-u 
set: (-o)(User=sad)
<10.147.1.179> SSH: ANSIBLE_TIMEOUT/timeout set: (-o)(ConnectTimeout=10)
<10.147.1.179> SSH: PlayContext set ssh_common_args: ()
<10.147.1.179> SSH: PlayContext set ssh_extra_args: ()
<10.147.1.179> SSH: found only ControlPersist; added ControlPath: 
(-o)(ControlPath=/home/sad/.ansible/cp/ansible-ssh-%h-%p-%r)
<10.147.1.179> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o 
ControlPersist=60s -o KbdInteractiveAuthentication=no -o 
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey 
-o PasswordAuthentication=no -o User=sad -o ConnectTimeout=10 -o 
ControlPath=/home/sad/.ansible/cp/ansible-ssh-%h-%p-%r -tt 10.147.1.179 
'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 
/usr/bin/python 
/home/sad/.ansible/tmp/ansible-tmp-1476625987.55-130642926662092/ping; rm 
-rf "/home/sad/.ansible/tmp/ansible-tmp-1476625987.55-130642926662092/" > 
/dev/null 2>&1'
10.147.1.179 | FAILED! => {
    "changed": false, 
    "failed": true, 
    "invocation": {
        "module_name": "ping"
    }, 
    "module_stderr": "OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g  1 
Mar 2016\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\ndebug2: fd 3 
setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 
4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 
remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: 
mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: 
done pid = 12698\r\ndebug3: mux_client_request_session: session request 
sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: 
mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received 
exit status from master 0\r\nShared connection to 10.147.1.179 
closed.\r\n", 
    "module_stdout": "bash: /usr/bin/python: No such file or 
directory\r\n", 
    "msg": "MODULE FAILURE", 
    "parsed": false
}

What am I doing wrong or what is missing?

/Henrik

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2f1017ad-4759-4917-9759-798737890fdb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to