hi all
I use ansible 2.3.0.0 on centos7 with sshpass 1.06-1。I execute flowing step they return ureachable Authentication failure.
- “ansible test -i ./hosts.1 -m ping”. It return unreachable Authentication failure.
- “ansible test --ask-pass -i ./hosts.1 -m ping”, after enter right password it also return unreachable failure.
I can manual execute successful with: sshpass -p ${password} ssh root@hostname “hostname”
when I use ansible -vvvv and sshpass -p ${password} ssh -vvvv found same difference between them:
ansible:
debug3: packet_send2: adding 64 (len 55 padlen 9 extra_pad 64)
debug2: we sent a password packet, wait for reply
ssh:
debug3: packet_send2: adding 64 (len 57 padlen 7 extra_pad 64)
debug2: we sent a password packet, wait for reply
it looks like two bytes eaten by ansible?
I have some question:
- why ansible exectue failure
- why ansible missing two byte when ssh
3.how ansible login remote?
if it pass password to sshpass, why missing two bytes?
where ansible password to ssh? how pass password to ssh?
thanks for any debug advise or solution this problem
hosts.1
[test]
${hostname} ansible_ssh_user=root ansible_ssh_pass=${password}
${}will replace by actual ip.