Hello !
I am trying to run a playbook by specifying the inventory using dynamic inventory as given below
{
“192.168.0.65”: {
“hosts”: [
“192.168.0.65”
],
“vars”: {
“ansible_connection”: “ssh”,
“ansible_ssh_pass”: “password”,
“ansible_ssh_port”: “22”,
“ansible_ssh_user”: “root”
}
} “_meta”: {
“hostvars”: {
“192.168.0.65”: {
“hypervisor_id_list”: [
“2”
],
“hypervisor_type”: “kvm”,
“password”: “password”,
“port”: “22”,
“username”: “root”
}
}
}
}
When i try to run the playbook it gets hung. I was hoping when i give the ansible_ssh_pass it would go ahead and run the playbook.
The console output looks like this
2015-05-18 08:39:11,060 - DEBUG - <192.168.0.65> EXEC sshpass -d4 ssh -C -tt -vvv -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ServerAliveInterval=200 -o StrictHostKeyChecking=no -o Port=22 -o GSSAPIAuthentication=no -o PubkeyAuthentication=no -o ConnectTimeout=200 192.168.0.65 /bin/sh -c ‘mkdir -p $HOME/.ansible/tmp/ansible-tmp-1431938351.05-188972893253294 && echo $HOME/.ansible/tmp/ansible-tmp-1431938351.05-188972893253294’
Even though i am assuming in my case it is not needed , i even tried --ask-pass it prompts for pasword and then the same thing.
I have the sshpass on the machine where i am running playbook from and not on the remote machine
I am able to ssh using the username/password
Please advise !