Request
Allow for multiplexing for network devices because some network services drop due to security connection limits hit when connecting repeatedly during playbook execution.
Environment
- Ansible 2.15+
- Cisco network device
Specifics
- Customer has set up multiplexing on RHEL devices using the following ansible.cfg
[defaults] transport = ssh [ssh_connection] ssh_args = -C -o ControlMaster=auto -o ControlPersist=360 control_path = /tmp/sockets/control-%%r@%%h:%%p
- However, this does not work for Cisco devices
- this is likely due to network devices using libssh
ref: https://docs.ansible.com/ansible/latest/collections/ansible/netcommon/libssh_connection.html - For libssh, I see ssh_args says "ProxyCommand is the only supported argument."
- this seems to be confirmed in the code
ref: https://github.com/ansible-collections/ansible.netcommon/blob/dd530dfcd05a88cda63d7f2f1c5e484b96a58397/plugins/connection/libssh.py#L344