Jumphost + Ansible

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.