Hi Florent, I don't have tried this but you can try, ssh command has been defined in `site-packages/ansible/runner/connection_plugins/ssh.py`
```` ssh_cmd += ["ssh", "-C"] ```` If autossh accept the same argument as ssh then it will work. Best Regards, Rahul Patil On Thursday, 10 March 2016 17:04:25 UTC+5:30, Florent B wrote: > > Hi, > > I would like my Ansible to use "autossh" command instead of "ssh" to > connect to hosts in inventory. > > Is there a way to do this ? > > Thank you. > -- 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 post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7e30fa2d-dd48-454b-8c44-41297ec8dc0e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
