It's in the docs: http://docs.ansible.com/ansible/faq.html#how-do-i-configure-a-jump-host-to-access-servers-that-i-have-no-direct-access-to
On Saturday, March 11, 2017 at 2:03:37 AM UTC+1, rajeev wrote: > > Hello All, > > In my environment, Ansible server (A) does not have trust access to its > clients. > I have another host (B), which allows trust access(using keys) to all > hosts in the environment. > > Host B has root trusted for entire environment. I can access any other > host by running SUDO from my ID.(e.g sudo ssh hostx works from host B from > my id) > > I have setup trust keys between the Ansible account on host A and my > account on host B , which works. I want Ansible to use that trust to jump > to host A and then run "SUDO ssh hostx". Here hostx would be any host which > is part of my inventory when I call my playbook. > > I am not getting any success so far to jump to any client from Ansible(A) > via Host B. > > A command line ssh from A via jump (B) to destination hostx works fine: > A prompt > ssh -t dane@B "sudo ssh hostx hostname" > > Please let me know if I am not clear or need to elaborate further. > > Appreciate any help or any ideas. > > Thanks much! > Rajeev > > -- 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/241b71ce-c460-4cde-af42-cac06fc379da%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
