<p dir="auto">I get a failure with the head revision on the 1.9 stable branch.</p>
<p dir="auto">This yml code works fine with the 1.8 release.</p>
<p dir="auto">This is running against a CentOS 6.6 machine.</p>
<ul dir="auto">
<li>name: install semanage<br>
yum: name=policycoreutils-python state=latest</li>
</ul>
<p dir="auto">I get the following traceback:</p>
<p dir="auto">TASK: [install semanage] ******************************************************<br>
fatal: [testrefgo] =&gt; Traceback (most recent call last):<br>
File "/Users/jgrigonis/github/ansible/lib/ansible/runner/<strong>init</strong>.py", line 582, in _executor<br>
exec_rc = self._executor_internal(host, new_stdin)<br>
File "/Users/jgrigonis/github/ansible/lib/ansible/runner/<strong>init</strong>.py", line 785, in _executor_internal<br>
return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)<br>
File "/Users/jgrigonis/github/ansible/lib/ansible/runner/<strong>init</strong>.py", line 1026, in _executor_internal_inner<br>
result = handler.run(conn, tmp, module_name, module_args, inject, complex_args)<br>
File "/Users/jgrigonis/github/ansible/lib/ansible/runner/action_plugins/normal.py", line 57, in run<br>
return self.runner._execute_module(conn, tmp, module_name, module_args, inject=inject, complex_args=complex_args)<br>
File "/Users/jgrigonis/github/ansible/lib/ansible/runner/<strong>init</strong>.py", line 547, in _execute_module<br>
res = self._low_level_exec_command(conn, cmd, tmp, become=self.become, sudoable=sudoable, in_data=in_data)<br>
File "/Users/jgrigonis/github/ansible/lib/ansible/runner/<strong>init</strong>.py", line 1163, in _low_level_exec_command<br>
in_data=in_data)<br>
File "/Users/jgrigonis/github/ansible/lib/ansible/runner/connection_plugins/ssh.py", line 362, in exec_command<br>
(returncode, stdout, stderr) = self._communicate(p, stdin, in_data, sudoable=sudoable, prompt=prompt)<br>
File "/Users/jgrigonis/github/ansible/lib/ansible/runner/connection_plugins/ssh.py", line 176, in _communicate<br>
elif stdout.endswith("%s\r\n%s" % (incorrect_password, prompt)):<br>
UnboundLocalError: local variable 'incorrect_password' referenced before assignment</p>
<p dir="auto">FATAL: all hosts have already failed -- aborting</p>
<p dir="auto">Ansible version:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 1.9.0 (detached HEAD bce4bb2ce2) last updated 2015/03/11 09:38:29 (GMT -700)
  lib/ansible/modules/core: (detached HEAD 0206cc8133) last updated 2015/03/11 09:38:37 (GMT -700)
  lib/ansible/modules/extras: (detached HEAD 4c0b7cb55a) last updated 2015/03/11 09:38:39 (GMT -700)
  v2/ansible/modules/core: (detached HEAD 34784b7a61) last updated 2015/03/11 09:38:40 (GMT -700)
  v2/ansible/modules/extras: (detached HEAD 46e316a20a) last updated 2015/03/11 09:38:42 (GMT -700)
  configured module search path = None"><pre class="notranslate"><code class="notranslate">ansible 1.9.0 (detached HEAD bce4bb2ce2) last updated 2015/03/11 09:38:29 (GMT -700)
  lib/ansible/modules/core: (detached HEAD 0206cc8133) last updated 2015/03/11 09:38:37 (GMT -700)
  lib/ansible/modules/extras: (detached HEAD 4c0b7cb55a) last updated 2015/03/11 09:38:39 (GMT -700)
  v2/ansible/modules/core: (detached HEAD 34784b7a61) last updated 2015/03/11 09:38:40 (GMT -700)
  v2/ansible/modules/extras: (detached HEAD 46e316a20a) last updated 2015/03/11 09:38:42 (GMT -700)
  configured module search path = None
</code></pre></div>
<p dir="auto">Stack trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [shared-testbox] =&gt; Traceback (most recent call last):
  File &quot;/home/xxx/src/ansible/lib/ansible/runner/__init__.py&quot;, line 582, in _executor
    exec_rc = self._executor_internal(host, new_stdin)
  File &quot;/home/xxx/src/ansible/lib/ansible/runner/__init__.py&quot;, line 785, in _executor_internal
    return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
  File &quot;/home/xxx/src/ansible/lib/ansible/runner/__init__.py&quot;, line 1026, in _executor_internal_inner
    result = handler.run(conn, tmp, module_name, module_args, inject, complex_args)
  File &quot;/home/xxx/src/ansible/lib/ansible/runner/action_plugins/normal.py&quot;, line 57, in run
    return self.runner._execute_module(conn, tmp, module_name, module_args, inject=inject, complex_args=complex_args)
  File &quot;/home/xxx/src/ansible/lib/ansible/runner/__init__.py&quot;, line 547, in _execute_module
    res = self._low_level_exec_command(conn, cmd, tmp, become=self.become, sudoable=sudoable, in_data=in_data)
  File &quot;/home/xxx/src/ansible/lib/ansible/runner/__init__.py&quot;, line 1163, in _low_level_exec_command
    in_data=in_data)
  File &quot;/home/xxx/src/ansible/lib/ansible/runner/connection_plugins/ssh.py&quot;, line 362, in exec_command
    (returncode, stdout, stderr) = self._communicate(p, stdin, in_data, sudoable=sudoable, prompt=prompt)
  File &quot;/home/xxx/src/ansible/lib/ansible/runner/connection_plugins/ssh.py&quot;, line 176, in _communicate
    elif stdout.endswith(&quot;%s\r\n%s&quot; % (incorrect_password, prompt)):
UnboundLocalError: local variable 'incorrect_password' referenced before assignment"><pre class="notranslate"><code class="notranslate">fatal: [shared-testbox] =&gt; Traceback (most recent call last):
  File "/home/xxx/src/ansible/lib/ansible/runner/__init__.py", line 582, in _executor
    exec_rc = self._executor_internal(host, new_stdin)
  File "/home/xxx/src/ansible/lib/ansible/runner/__init__.py", line 785, in _executor_internal
    return self._executor_internal_inner(host, self.module_name, self.module_args, inject, port, complex_args=complex_args)
  File "/home/xxx/src/ansible/lib/ansible/runner/__init__.py", line 1026, in _executor_internal_inner
    result = handler.run(conn, tmp, module_name, module_args, inject, complex_args)
  File "/home/xxx/src/ansible/lib/ansible/runner/action_plugins/normal.py", line 57, in run
    return self.runner._execute_module(conn, tmp, module_name, module_args, inject=inject, complex_args=complex_args)
  File "/home/xxx/src/ansible/lib/ansible/runner/__init__.py", line 547, in _execute_module
    res = self._low_level_exec_command(conn, cmd, tmp, become=self.become, sudoable=sudoable, in_data=in_data)
  File "/home/xxx/src/ansible/lib/ansible/runner/__init__.py", line 1163, in _low_level_exec_command
    in_data=in_data)
  File "/home/xxx/src/ansible/lib/ansible/runner/connection_plugins/ssh.py", line 362, in exec_command
    (returncode, stdout, stderr) = self._communicate(p, stdin, in_data, sudoable=sudoable, prompt=prompt)
  File "/home/xxx/src/ansible/lib/ansible/runner/connection_plugins/ssh.py", line 176, in _communicate
    elif stdout.endswith("%s\r\n%s" % (incorrect_password, prompt)):
UnboundLocalError: local variable 'incorrect_password' referenced before assignment
</code></pre></div>