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 <[email protected]> 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 [email protected]@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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/d2337143-d178-4e55-bc66-4c4c60bd2266%40googlegroups.com. -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAL8fbwOC7hRDjZpLE8AQ5d%2BFE_gYA_oiBMi4aDP-X-M4h8Munw%40mail.gmail.com.
