NameError: global name 'ssh_common_args' is not defined

Hi,

I recently installed Ansible from github and was trying to start with the ping command, “ansible all -m ping -vvv” but it is throwing this error. I could not find the reason, can someone please give a hint on why is it happening or how to fix this?

Using /home/kbonagir/ansible/ansible/ansible.cfg as config file
ESTABLISH CONNECTION FOR USER: None on PORT 22 TO localhost
An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
File “/home/kbonagir/ansible/ansible/lib/ansible/executor/task_executor.py”, line 122, in run
res = self._execute()
File “/home/kbonagir/ansible/ansible/lib/ansible/executor/task_executor.py”, line 418, in _execute
result = self._handler.run(task_vars=variables)
File “/home/kbonagir/ansible/ansible/lib/ansible/plugins/action/normal.py”, line 33, in run
results = merge_hash(results, self._execute_module(tmp=tmp, task_vars=task_vars))
File “/home/kbonagir/ansible/ansible/lib/ansible/plugins/action/init.py”, line 440, in _execute_module
tmp = self._make_tmp_path()
File “/home/kbonagir/ansible/ansible/lib/ansible/plugins/action/init.py”, line 211, in _make_tmp_path
result = self._low_level_execute_command(cmd, sudoable=False)
File “/home/kbonagir/ansible/ansible/lib/ansible/plugins/action/init.py”, line 556, in _low_level_execute_command
rc, stdout, stderr = self._connection.exec_command(cmd, in_data=in_data, sudoable=sudoable)
File “/home/kbonagir/ansible/ansible/lib/ansible/plugins/connection/paramiko_ssh.py”, line 253, in exec_command
super(Connection, self).exec_command(cmd, in_data=in_data, sudoable=sudoable)
File “/home/kbonagir/ansible/ansible/lib/ansible/plugins/connection/init.py”, line 49, in wrapped
self._connect()
File “/home/kbonagir/ansible/ansible/lib/ansible/plugins/connection/paramiko_ssh.py”, line 141, in _connect
self.ssh = SSH_CONNECTION_CACHE[cache_key] = self._connect_uncached()
File “/home/kbonagir/ansible/ansible/lib/ansible/plugins/connection/paramiko_ssh.py”, line 212, in _connect_uncached
sock_kwarg = self._parse_proxy_command(port)
File “/home/kbonagir/ansible/ansible/lib/ansible/plugins/connection/paramiko_ssh.py”, line 152, in _parse_proxy_command
if ssh_common_args is not None:
NameError: global name ‘ssh_common_args’ is not defined

localhost | FAILED! => {
“failed”: true,
“msg”: “Unexpected failure during module execution.”,
“stdout”: “”
}

Thanks,
Kishore

This should be resolved now. You will need to update your git clone or however you initially installed.