# ssh\_args as group\_vars?

**URL:** <https://forum.ansible.com/t/ssh-args-as-group-vars/14912>\
**Category:** Ansible Project\
**Created:** [April 2, 2014, 1:13am UTC](https://forum.ansible.com/t/ssh-args-as-group-vars/14912 "2014-04-02T01:13:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tobias\_Wolter](https://avatars.discourse-cdn.com/v4/letter/t/f6c823/32.png) [@Tobias\_Wolter](https://forum.ansible.com/u/Tobias_Wolter)\
**Post date:** [April 2, 2014, 1:13am UTC](https://forum.ansible.com/t/ssh-args-as-group-vars/14912/1 "2014-04-02T01:13:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [April 2, 2014, 8:05pm UTC](https://forum.ansible.com/t/ssh-args-as-group-vars/14912/2 "2014-04-02T20:05:39Z")

</div>

-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.
