You should not need to specify those extra ssh_args if you're using the ssh
transport and your system supports ControlPersist. Can you gist/pastebin
the output of a test run using -vvvvv to see any additional SSH debugging
information available?


On Wed, May 21, 2014 at 12:20 AM, Greg Hurrell <[email protected]> wrote:

> Hi,
>
> I've noticed that Ansible isn't using ControlMaster in my local setup,
> making it slower than it needs to be.
>
> This is Ansible 1.6.1, running on OS X 10.9.3 and connecting to remote
> hosts running CentOS 6.
>
> If I connect to the remote host and tail -f /var/log/secure I can see
> tell-tale Accepted publickey for ec2-user entries getting added over and
> over again during Ansible runs.
>
> I tried overriding the ssh_connection ssh_args setting to specify a
> specific ControlMaster path as suggested in the 
> docs<http://docs.ansible.com/intro_configuration.html>,
> but the only thing that works is setting up a specific entry in
> ~/.ssh/config for the hosts I'm connecting to with (something like):
>
> Host *
> ControlMaster auto
> ControlPath  ~/.ssh/%r@%h:%p
> ControlPersist 240
>
> Any ideas why not this explicit set-up in ansible.cfg has any effect?
>
> [ssh_connection]
> ssh_args = -vvvv -o ControlMaster=auto -o ControlPersist=60s
> control_path = %(directory)s/%%h-%%r
>
>  --
> 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/335d4ae2-1d84-419c-8f19-34e10ad32b6e%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/335d4ae2-1d84-419c-8f19-34e10ad32b6e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAMFyvFg22TbY-nH_aEu_j2_g0FeGUmBsaV4nUVeViQx8LOhA%3Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to