Accessing Network Devices via Jump Hosts

Hi,

I’ve a general question related to Ansible for accessing the network devices. While going through the ansible documentations, I understood that the control host is directly connected to the network elements and send the commands for configurations. However, in real world scenarios, these network devices via a jump host, i.e the case in which the control machine has to login to a linux machine first and from this linux machine, they ssh is to be done to network devices. Is there a way to achieve this using ansible?

Thank You,

Kind Regards,

Ashwajit

https://docs.ansible.com/ansible/latest/reference_appendices/faq.html#how-do-i-configure-a-jump-host-to-access-servers-that-i-have-no-direct-access-to

I have a similar question. In one of the environment, Application server (in which ansible is installed) is located in Green network and actual network devices are located in Red Network. Connection from Green network to Red Network is only by a VPN connection. Is there a possibility in Ansible to connect from Green net to red net via VPN ?