How to use safe box password authentication RDP and SSH

Good afternoon, how to connect in windows and linux (rdp and ssh) through a gateway (password vault) with ansible.
Example: To access normally via ssh I use:

ssh root@192.168.0.1@gateway.intranet

This prompts you for the domain username and password, and then the root password.

How can I make ansible connect to servers that need this authentication?

Thanks in advance.

Try something like this in your inventory:

192.168.0.1 ansible_user=root ansible_ssh_common_args='-o
ProxyJump="gateway.intranet"'

Good morning, I took the test, but it did not work, follow error attached.