Try something like this in your inventory:
192.168.0.1 ansible_user=root ansible_ssh_common_args='-o
ProxyJump="gateway.intranet"'
On Fri, 11 Oct 2019 at 20:34, Gabriel Silva <g.si...@gmail.com> wrote:
>
> 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 ro...@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.
>
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.