Jumphost + Ansible

25 views
Skip to first unread message

Luke Baldan

unread,
Mar 20, 2018, 7:45:12 AM3/20/18
to Ansible Project
Hi,

I've started my ansible journey and i am impressed so far.

A function i am hoping to utilise is the ability to connect via a jump/bastion host in order to get to my devices i wish to run commands on.
The issue is that in order to get to a device i want ansible to run commands on, i need to do the following:

ssh into server1 
issue command 'connect device1'
device1 command prompt appears ready for input

The documentation i have read seems to only cater for this type of arrangement:

ssh into server1 
ssh into device1 
device1 command prompt appears ready for input

Does anyone have any tips on how to achieve the above behaviour?

Thanks. 
Reply all
Reply to author
Forward
0 new messages