One solution is to do this instead:

ansible group -B 1800 -P 30 -m shell -a 'wget -O /tmp/dosomething 
http://some.ur.com/somefile && ls -l /tmp/dosomething && sudo /bin/bash 
/tmp/dosomething' --ask-pass --sudo --ask-sudo-pass

Not sure why doing it the other way sometimes has the prompt issue.

Alex

On Thursday, October 30, 2014 9:44:45 AM UTC-7, Alex Scoble wrote:
>
> I'm using Ansible to do an ad-hoc command against multiple systems. The 
> command does a wget and then pipes to sudo sh. Obviously, I'm using the 
> shell module to do this.
>
> Psuedo command: ansible group -B 1800 -P 30 -m shell -a 'wget -O - 
> http://some.url.com | sudo sh' --ask-pass --sudo --ask-sudo-pass
>
> Problem is that sometimes, when this is done, sudo password prompt is 
> hidden until user hits enter on keyboard.
>
> How can I get Ansible beyond this issue?
>
> Thanks,
>
> Alex
>

-- 
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/97bd2936-5bec-4844-b67c-c6ad1142c9ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to