It seems, the sudo option does not work. I'm asked for the password, but I do not see it working.
Am I missing something? $ ansible -vvvv all --sudo-user sudouser --ask-sudo-pass -a 'ls -al /opt/SP/sudouser/scripts' SUDO password: <myhost> ESTABLISH CONNECTION FOR USER: cygwinme <myhost> REMOTE_MODULE command ls -al /opt/SP/sudouser/scripts <myhost> EXEC ssh -C -tt -vvv -o ControlMaster=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic, gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 myhost /bin/sh -c 'mkdir -p $HOME/.ansible/tmp/ansible-tmp-1440686159.76-102172331141486 && chmod a+rx $HOME/.ansible/tmp/ansible-tmp-1440686159.76-102172331141486 && echo $HOME/.ansible/tmp/ansible-tmp-1440686159.76-102172331141486' <myhost> PUT /tmp/tmp3pJW5R TO /home/linuxme/.ansible/tmp/ansible-tmp- 1440686159.76-102172331141486/command <myhost> EXEC ssh -C -tt -vvv -o ControlMaster=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic, gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=10 myhost /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python /home/linuxme/.ansible/tmp/ansible-tmp-1440686159.76-102172331141486/command; rm -rf /home/linuxme/.ansible/tmp/ansible-tmp-1440686159.76-102172331141486/ >/dev/null 2>&1' myhost | FAILED | rc=2 >> ls: cannot access /opt/SP/sudouser/scripts: Permission denied -- 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/f314f57e-93a4-423d-9486-c70546bb0f1c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
