Probably not possible, but ...

40 views
Skip to first unread message

Tennis Smith

unread,
Oct 28, 2014, 4:39:53 PM10/28/14
to ansible...@googlegroups.com

Can a file in group_vars (say <project>/group_vars/foo/all) set the ANSIBLE_SSH_ARGS variable and point to a new config file?  

I'm trying to figure out a way to have different groups have different ssh config files.

Example:

environment
:
   ANSIBLE_SSH_ARGS
:" -F <foo ssh config>"


TIA
-T

Michael DeHaan

unread,
Oct 30, 2014, 4:29:48 PM10/30/14
to ansible...@googlegroups.com
Currently this parameter can only be set globally, I think we're open to the possibility, but it would not be through the environment keyword, but likely via "ansible_ssh_args" as an inventory var.

Pull request would definitely be welcome to make this possible, or otherwise open a feature idea ticket on github?

Thanks!




--
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 post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/58f8b828-13ef-4356-b43c-66cfa28f320d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages