The controlpath uses %r, %h and %p to differentiate socket files for different hosts.
In particular %h is for the host name. I see you only have %r which is the remote username. By removing %h you will most definitely run into a situation where you are running commands on the wrong host, since it is using a control socket for the first host that is connected to. You can use other paths instead of %(directory) or remove ansible-ssh- from the path for making it shorter. On Friday, August 14, 2015, Larry Fast <[email protected]> wrote: > I ran into the 'unix_listener: > "/home/my_name/.ansible/cp/ansible-ssh-vvvvvveerrrrryyyyy_looonnnngggggg_ssserrrveeerrr_nnnaaammmmeeeee.5GoIZEXF2gwQ7DF0" > too long for Unix domain socket' so I tried changing ControlPath to > %(directory)s/ansible-ssh-%%r > > Then all my remote commands started getting executed on localhost even > though the logs indicated they were running on the target hosts. So I'm > guessing ControlPath is the problem. yes? > > If so, is there a more appropriate solution to this problem? > > > -- > 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] > <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');> > . > To post to this group, send email to [email protected] > <javascript:_e(%7B%7D,'cvml','[email protected]');>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/c0b9347a-f716-4f5d-b2b1-eb5de6fe9c5c%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/c0b9347a-f716-4f5d-b2b1-eb5de6fe9c5c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Matt Martz @sivel sivel.net -- 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/CAD8N0v_RTKxNWKDhdVX2drLrz93sXHhtE_uznM2Mggi1Di4ByA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
