How to pass ssh args in ansible

286 views
Skip to first unread message

Vincent Nambatac

unread,
Jul 8, 2021, 9:11:07 PM7/8/21
to Ansible Project

Hi Guys , I want to pass ang ssh arguments since I cannot directly use ssh@IP, I want to add this arguments;
ssh -o KexAlgorithms=diffie-hellman-group14-sha1 -o HostKeyAlgorithms=+ssh-dss -caes128-cbc@IP
How can i configure this to ansible. thanks in advance.

Richard Megginson

unread,
Jul 8, 2021, 10:27:40 PM7/8/21
to ansible...@googlegroups.com
Use ansible_ssh_common_args in your inventory or wherever you set your vars, or use the --ssh-common-args cli flag

--
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-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a3655f4f-24aa-4268-82bb-7405e0f3b4f0n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages