have you set any values for "ssh_args" in ansible.cfg or environment variable 'ANSIBLE_SSH_ARGS'
can you set 'export ANSIBLE_SSH_ARGS=" "' and see if that helps. On Mon, May 18, 2015 at 3:16 PM, Ritesh Shetty <ritesh.s.she...@gmail.com> wrote: > Hi Beno > The output i sent is with vvvv and connection "ssh" caused it to hang > > > On Monday, May 18, 2015, benno joy <benno...@gmail.com> wrote: > >> Hi Ritesh, >> >> Both key and pasaword should work fine with both connection types (ssh, >> paramiko), since paramiko works fine, i would guess some ssh config might >> be causing the issue, can you change you connection type back to ssh and >> run the playbook -vvvv and attach an output, also the version of ansible >> you are using. >> >> >> - Benno >> >> >> On Mon, May 18, 2015 at 2:40 PM, Ritesh Shetty <ritesh.s.she...@gmail.com >> > wrote: >> >>> My Problem got solved when i used ansible_connection as paramiko. The >>> documentation says post 1.2 i can use "smart" but when i give that it >>> doesnt recognise it. >>> So the question is if i have to go with password v/s key then what >>> ansible_connection should i be using for both ? >>> >>> On Monday, May 18, 2015 at 1:50:51 AM UTC-7, Ritesh Shetty wrote: >>>> >>>> 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 ! >>>> >>>> >>>> >>>> >>>> -- >>> 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/e3255968-773c-4231-a486-de7e0cdf6889%40googlegroups.com >>> <https://groups.google.com/d/msgid/ansible-project/e3255968-773c-4231-a486-de7e0cdf6889%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Ansible Project" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/ansible-project/DDMr5kLta7A/unsubscribe >> . >> To unsubscribe from this group and all its topics, 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/CAFUV_d6Au7jvw%3D0_4jSnRvxq9Os6mcMVeEbHH8n%3DWTFUUPc7PQ%40mail.gmail.com >> <https://groups.google.com/d/msgid/ansible-project/CAFUV_d6Au7jvw%3D0_4jSnRvxq9Os6mcMVeEbHH8n%3DWTFUUPc7PQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- > 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/CABkKkrUv5dQqen_woh5-1ktXs0gr7boy2GARdCkmMx6W6FDcXg%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CABkKkrUv5dQqen_woh5-1ktXs0gr7boy2GARdCkmMx6W6FDcXg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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/CAFUV_d6LN0Y0j2R2hWpUd%2BFpGhLeSA8FEBZJnoRStHobhop5yw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.