Just did a quick test running ansible -m setup on 28 hosts:
Regular ssh:
real 0m18.164s
user 0m36.436s
sys 0m1.836s
With ssh_alt:
real 0m8.274s
user 0m7.784s
sys 0m1.864s
SO, yeah!
One error I encountered, was with hosts that are currently down:
Normally, I get the typical error “FAILED => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue”
With ssh_alt, this tracebacks:
FAILED => Traceback (most recent call last):
File “/home/serge/src/ansible/lib/ansible/runner/init.py”, line 413, in _executor
exec_rc = self._executor_internal(host, new_stdin)
File “/home/serge/src/ansible/lib/ansible/runner/init.py”, line 504, in _executor_internal
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
File “/home/serge/src/ansible/lib/ansible/runner/init.py”, line 704, in _executor_internal_inner
result = handler.run(conn, tmp, module_name, module_args, inject, complex_args)
File “/home/serge/src/ansible/lib/ansible/runner/action_plugins/normal.py”, line 54, in run
return self.runner._execute_module(conn, tmp, module_name, module_args, inject=inject, complex_args=complex_args)
File “/home/serge/src/ansible/lib/ansible/runner/init.py”, line 379, in _execute_module
res = self._low_level_exec_command(conn, cmd, tmp, sudoable=sudoable, in_data=in_data)
File “/home/serge/src/ansible/lib/ansible/runner/init.py”, line 815, in _low_level_exec_command
rc, stdin, stdout, stderr = conn.exec_command(cmd, tmp, sudo_user, sudoable=sudoable, executable=executable, in_data=in_data)
File “/home/serge/src/ansible/lib/ansible/runner/connection_plugins/ssh_alt.py”, line 233, in exec_command
stdin.write(in_data)
IOError: [Errno 32] Broken pipe
HTH,
Serge