I found a fairly good workaround. According to the following scenario:

we create an ssh tunnel to a temporary host that can directly reach the target host. We also create a local port binding with the -L flag:
ssh -J user_1@transient _host1:port_1 -p port_2 user_2@transient _host2 -L LOCAL_PORT:TARGET_HOST_IP:TARGET_HOST_PORT
Then we can directly enter the Target Host using local binding:
ssh user_target_host@localhost -p LOCAL_PORT
Thus, we can run available text books for the local host by setting the necessary variables:
ansible_host: localhost ansible_user: user_target_host ansible_port: LOCAL_PORT ansible_password: password_target_host
source share