ssh_args as group_vars?

Hey there,

does someone know if it’s possible to define ssh_args as a group_var or something similar?

The issue I’m currently facing is that I want to selectively enable SSH agent forwarding,
without maintaining any alternate configuration file overhead.
(i.e. goal is “just works, no thinking necessary”)

Ideal for me would be to just use a group_var, maybe ansible_ssh_args, to forward the agent,
but so far I haven’t found anything along those lines.

Does anybody have an idea, or do I need to open a feature request for this?

-towo

-c ssh will read options from your SSH config so that may be an option.

It is not possible to set at group variable level presently, though patches for this would probably be considered*

  • = but probably not actively worked on, given the above solution is possible.