Ansible: SSH Error: unix_listener: too long for Unix domain socket

前端 未结 4 748
天涯浪人
天涯浪人 2021-02-04 09:19

This is a known issue and I found a solution but it\'s not working for me.

First I had:

fatal: [openshift-node-compute-e50xx] => SSH Error: ControlPat         


        
4条回答
  •  感动是毒
    2021-02-04 09:31

    Customizing the control_path solves the problem for me. Here is how to do it without spamming the home directory.

    The control_path defaults to (documentation):

    control_path=%(directory)s/ansible-ssh-%%h-%%p-%%r
    

    Edit ansible config.

    vim ~/.ansible.cfg
    

    Here are sample file contents with new control_path value:

    [defaults]
    inventory=/etc/ansible/hosts
    
    [ssh_connection]
    control_path=%(directory)s/%%h-%%r
    control_path_dir=~/.ansible/cp
    

提交回复
热议问题