On Tuesday, November 18, 2014 5:46:31 PM UTC-8, lanz wrote:
>
> ansible v1.7.2, running on RHEL 6.5, x86_64
>
>
> But when I try
>
>
>     $ ansible all -m ping
>
>
> I get failures like this for each host:
>
>
> paramiko: The authenticity of host 'sesincub.stanford.edu' can't be 
> established. 
>
> The ssh-rsa key fingerprint is e5044ec0f82c2d1c25bc088c6cf9f372. 
>
> Are you sure you want to continue connecting (yes/no)?
>
> yes
>
> sesincub.stanford.edu | FAILED >> {
>
>     "failed": true, 
>
>     "msg": "  File 
> \"/home/lanz/.ansible/tmp/ansible-tmp-1416358227.56-273156953803218/ping\", 
> line 185\n    return dict((_convert(k), _convert(v)) for k, v in 
> node.items)\n                                             ^\nSyntaxError: 
> invalid syntax\n", 
>
>     "parsed": false
>
> }
>
 

I've answered part of my question. Our Kerberos authentication setup was

getting in the way of my tests yesterday and confusing paramiko. So, to get

Kerberos out of the way and guarantee that I'm using the SSH public key 
auth,

I've deleted my kerberos tickets. Now I can ssh into my test boxes from the

ansible host, still without being prompted for a password, and the logs on

the client box show "Accepted publickey for lanz" as expected.


And now, when I try the ansible 'ping', the complaints from paramiko are

gone:


$ ansible all -m ping

sesincub.stanford.edu | FAILED >> {

    "failed": true, 

    "msg": "  File 
\"/home/lanz/.ansible/tmp/ansible-tmp-1416422847.56-222433795331874/ping\", 
line 185\n    return dict((_convert(k), _convert(v)) for k, v in 
node.items)\n                                             ^\nSyntaxError: 
invalid syntax\n", 

    "parsed": false

}


As a result of this ping attempt, the logs on the client box say:


Nov 19 10:47:27 sesincub sshd[14161]: Accepted publickey for lanz from 
171.x.x.x port 59540 ssh2

Nov 19 10:47:27 sesincub sshd[14163]: subsystem request for sftp


So, is that the expected output from the ping test? It doesn't look like it;

it looks like a little block of source code. Why am I seeing that?


I've tested sftp manually from the ansible host to the client, and it works

fine.


Python version is 2.6.6.


-- 
Kai Lanz              Stanford University           SChool of Earth Sciences
 

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/45a360b6-2efb-48c4-92b2-db1d993b5fd8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to