Hello, I know this is an old thread, but I have exactly the same problem as Ethan. In our environment, we juse a jump host to access servers. This is a very hardened and stripped down linux/unix server.
The only way to become root on your server-to-manage is to ssh with your username to the jumphost and then issue a "sudo ssh server-to-manage". I can accomplish this in one ssh command with this: ssh -tt jumpserver "sudo ssh server-to-manage" Question is how do you accomplish that in Ansible?! Any advice is much appreciated. Kind Regards, Thomas Den tisdag 3 februari 2015 kl. 11:26:31 UTC+1 skrev Ethan Zhan: > > Hi, > > I'm in trouble with how to use ansible on jumpbox, here is the > issue. > > from jumpbox I have to use command *sudo ssh box_ip* to get > login with root permission. > > How can I let ansible know to use sudo ssh instead of ssh command > to execute ? > > Thanks > Ethan > -- 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/61e47c0d-f0dd-418b-b90f-237ed8ab1cc2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
