[ansible-project] Totally Stuck...
This is a real blocker.SSH works but Ansible does not. In the debug output I see ''PasswordAuthentication=no' and that looks wrong. Any ideas? Thanks - $: ssh -t venus mkdir /tmp/core; cd /tcp; sudo mv /tmp/core . 2/dev/null Password: pwd No problem. -- $: ansible venus - -i hosts -m shell -a mkdir /tmp/core; cd /tcp; sudo mv /tmp/core . --sudo -K sudo password: pwd venus ESTABLISH CONNECTION FOR USER: user venus REMOTE_MODULE command mkdir /tmp/core; cd /tcp; sudo mv /tmp/core . #USE_SHELL venus EXEC ['ssh', '-C', '-vvv', '-o', 'Port=22', '-o', 'KbdInteractiveAuthentication=no', '-o', 'PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey', '-o', 'PasswordAuthentication=no', '-o', 'ConnectTimeout=10', 'venus', u'/bin/sh -c sudo -k sudo -H -S -p \\[sudo via ansible, key=rcqlyohwnuyvwjzysaxnqqcdokwhgfok] password: \\ -u root /bin/bash -c \'echo SUDO-SUCCESS-rcqlyohwnuyvwjzysaxnqqcdokwhgfok; LC_CTYPE=C LANG=C /usr/bin/python\''] venus | FAILED = ssh connection error waiting for sudo or su password prompt -- 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/c1bcc046-b57a-4f98-9d2a-a64565915b8d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Totally Stuck...
-- $: ansible venus - -i hosts -m shell -a mkdir /tmp/core; cd /tcp; sudo mv /tmp/core . --sudo -K sudo password: pwd Looks like you are asking to be prompted for a sudo password ('-K') but not an SSH password ('-k') -- so it's not going to be trying for password auth. -Tim -- Tim Gerla t...@gerla.net -- 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/CAH4wdVUMp7XOUwqFQgbiKTDneesW0mef5sS1031-XaqobPp8VQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [ansible-project] Totally Stuck...
You can't call sudo from the shell module. The play would normal be like this: tasks: - name: foo sudo: true sudo_user: root file: state=directory dest=/tcp/core On 09/29/2014 02:56 PM, Tiglath wrote: Thank you for your reply. I did not explain myself too well. Sorry. I don't need SSH authentication, only sudo. So we have two authentications. SSH proceeds without password using keys, but sudo needa a password, which I give at the prompt. What other password is it waiting for, as mentioned in the error message? On Monday, September 29, 2014 3:37:25 PM UTC-4, Timothy Gerla wrote: -- $: ansible venus - -i hosts -m shell -a mkdir /tmp/core; cd /tcp; sudo mv /tmp/core . --sudo -K sudo password: pwd Looks like you are asking to be prompted for a sudo password ('-K') but not an SSH password ('-k') -- so it's not going to be trying for password auth. -Tim -- Tim Gerla t...@gerla.net javascript: -- 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 mailto:ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com mailto:ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/12ac254d-f4bd-407d-ad46-509e9a33e2c1%40googlegroups.com https://groups.google.com/d/msgid/ansible-project/12ac254d-f4bd-407d-ad46-509e9a33e2c1%40googlegroups.com?utm_medium=emailutm_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/5429BB50.705%40brainfood.com. For more options, visit https://groups.google.com/d/optout.