Makimoto,

Have you enabled 'pipelining = True' in your ansible.cfg file?

If so, this is potentially the cause.  Regardless, it would be nice to see the 
output of ansible -vvvv as that would help identify if pipelining is being used 
or not, or any other potential issues.

-- 
Matt Martz
m...@sivel.net

On March 20, 2014 at 9:05:26 AM, Makimoto Marakatti (makim...@gmail.com) wrote:


Hi all

I had few sudo issues in the past, and those got solved. Now after updating to 
latest release (1.5.3) the problem has resurfaced again.
My master box has an ansible user. Which connects through ssh certs and has 
sudo rights to root on each of the remote boxes.
I've got 62 boxes that are failing if I sudo to them with ansible. Those 62 are 
a mixture to rhel/centos 5.?/6.? 32/64. Nothing in common.
Examples below are shown using a single box.

So if I do not use sudo, it works:

$ ansible commando -om ping
commando | success >> {"changed": false, "ping": "pong"}

Now with sudo:

$ ansible commando -sKom ping
sudo password:  
commando | FAILED => ssh connection closed waiting for sudo or su password 
prompt

and yet:

$ ssh commando
Last login: Thu Mar 20 12:02:12 2014 from ansible_master.passmark.net
[ansible@commando ~]$ sudo su -
[sudo] password for ansible:  
[root@commando ~]# id
uid=0(root) gid=0(root) 
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)

I actually updated to dev as I was told that my previous sudo issues had been 
solved in the dev branch. Unfortunately no difference. (It got rid of the 
nagging "previous host file not found" message thou)

Any help to try to clear this issue for once and for all would be very welcome 
indeed.

Thanks

--
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/74e9609c-e50e-46ea-8d34-ae331d47f52e%40googlegroups.com.
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/etPan.532afb33.6b8b4567.d157%40mobiletuvix.rackspace.corp.
For more options, visit https://groups.google.com/d/optout.

Reply via email to