<h5 dir="auto">ISSUE TYPE</h5>

<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>

<p dir="auto">include_role</p>
<h5 dir="auto">ANSIBLE VERSION</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.1.0
  config file = /usr/local/etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.13 (default, Jun 18 2017, 09:55:08) [GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)]
"><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0
  config file = /usr/local/etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.13 (default, Jun 18 2017, 09:55:08) [GCC 4.2.1 Compatible FreeBSD Clang 3.4.1 (tags/RELEASE_34/dot1-final 208032)]

</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>

<h5 dir="auto">OS / ENVIRONMENT</h5>

<p dir="auto">FreeBSD server, CentOS client</p>
<h5 dir="auto">SUMMARY</h5>

<p dir="auto">Tasks from role included via include_role are duplicated if used inside dependencies.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>

<p dir="auto">role 'technical'<br>
role 'base' inlcudes 'technical' via include_role<br>
role 'service1' depends on 'base'<br>
role 'service2' depends on 'base'</p>
<p dir="auto">playbook applies roles 'service1', 'service2' to a host.</p>

<h5 dir="auto">EXPECTED RESULTS</h5>

<p dir="auto">applied tasks from roles:<br>
'base' (with 'technical'), 'service1', 'service2'</p>
<h5 dir="auto">ACTUAL RESULTS</h5>

<p dir="auto">applied tasks from roles:<br>
'base' (with 'technical"), 'service1', 'technical', 'service2'</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">yum</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.5 (default, Nov  6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.2.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides
  python version = 2.7.5 (default, Nov  6 2016, 00:28:07) [GCC 4.8.5 20150623 (Red Hat 4.8.5-11)]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">Using default configuration</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Ansible is running on CentOS 7.3 and is trying to manage another CentOS 7.3 system.</p>
<h5 dir="auto">SUMMARY</h5>

<p dir="auto">Using the yum module with the list parameter fails with a message like "Shared connection to xxxxx closed."</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>


<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="---
- hosts: example-host
  remote_user: root
  gather_facts: no
  tasks:

  - name: List ansible packages and register result to print with debug later.
    yum:
      list: ansible
    register: result
..."><pre class="notranslate">---
- <span class="pl-ent">hosts</span>: <span class="pl-s">example-host</span>
  <span class="pl-ent">remote_user</span>: <span class="pl-s">root</span>
  <span class="pl-ent">gather_facts</span>: <span class="pl-s">no</span>
  <span class="pl-ent">tasks</span>:

  - <span class="pl-ent">name</span>: <span class="pl-s">List ansible packages and register result to print with debug later.</span>
    <span class="pl-ent">yum</span>:
      <span class="pl-ent">list</span>: <span class="pl-s">ansible</span>
    <span class="pl-ent">register</span>: <span class="pl-s">result</span>
...</pre></div>

<h5 dir="auto">EXPECTED RESULTS</h5>

<p dir="auto">I expected to get a list of packages in the result variable</p>
<h5 dir="auto">ACTUAL RESULTS</h5>

<p dir="auto">The module fails with "Shared connection to example-host closed."</p>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using /etc/ansible/ansible.cfg as config file
Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc

PLAYBOOK: yum_error.yml ****************************************************************
1 plays in yum_error.yml

PLAY [example-host] ************************************************************************
META: ran handlers

TASK [List ansible packages and register result to print with debug later.] ************
task path: /root/yum_error.yml:7
Using module file /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/yum.py
&lt;example-host&gt; ESTABLISH SSH CONNECTION FOR USER: root
&lt;example-host&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf example-host '/bin/sh -c '&quot;'&quot;'echo ~ &amp;&amp; sleep 0'&quot;'&quot;''
&lt;example-host&gt; (0, '/root\n', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
&lt;example-host&gt; ESTABLISH SSH CONNECTION FOR USER: root
&lt;example-host&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf example-host '/bin/sh -c '&quot;'&quot;'( umask 77 &amp;&amp; mkdir -p &quot;` echo /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964 `&quot; &amp;&amp; echo ansible-tmp-1500387081.41-174099514042964=&quot;` echo /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964 `&quot; ) &amp;&amp; sleep 0'&quot;'&quot;''
&lt;example-host&gt; (0, 'ansible-tmp-1500387081.41-174099514042964=/root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964\n', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
&lt;example-host&gt; PUT /tmp/tmp5PxZfO TO /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py
&lt;example-host&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf '[example-host]'
&lt;example-host&gt; (0, 'sftp&gt; put /tmp/tmp5PxZfO /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py\n', 'OpenSSH_7.4p1 (CentrifyDC build 5.4.1-447) , OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/centrifydc/ssh/ssh_config\r\ndebug1: /etc/centrifydc/ssh/ssh_config line 55: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension &quot;posix-rename@openssh.com&quot; revision 1\r\ndebug2: Server supports extension &quot;statvfs@openssh.com&quot; revision 2\r\ndebug2: Server supports extension &quot;fstatvfs@openssh.com&quot; revision 2\r\ndebug2: Server supports extension &quot;hardlink@openssh.com&quot; revision 1\r\ndebug2: Server supports extension &quot;fsync@openssh.com&quot; revision 1\r\ndebug3: Sent message fd 6 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -&gt; /root size 0\r\ndebug3: Looking up /tmp/tmp5PxZfO\r\ndebug3: Sent message fd 6 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:22946\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 22946 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
&lt;example-host&gt; ESTABLISH SSH CONNECTION FOR USER: root
&lt;example-host&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf example-host '/bin/sh -c '&quot;'&quot;'chmod u+x /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/ /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py &amp;&amp; sleep 0'&quot;'&quot;''
&lt;example-host&gt; (0, '', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
&lt;example-host&gt; ESTABLISH SSH CONNECTION FOR USER: root
&lt;example-host&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf -tt example-host '/bin/sh -c '&quot;'&quot;'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py; rm -rf &quot;/root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/&quot; &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'&quot;'&quot;''
&lt;example-host&gt; (0, 'Traceback (most recent call last):\r\n  File &quot;/tmp/ansible_GUOpc4/ansible_module_yum.py&quot;, line 1267, in &lt;module&gt;\r\n    main()\r\n  File &quot;/tmp/ansible_GUOpc4/ansible_module_yum.py&quot;, line 1225, in main\r\n    params[\'disablerepo\'], params[\'enablerepo\'])}\r\n  File &quot;/tmp/ansible_GUOpc4/ansible_module_yum.py&quot;, line 652, in list_stuff\r\n    is_available(module, repoq, stuff, conf_file, qf=qf, installroot=installroot)) if p.strip()]\r\n  File &quot;/tmp/ansible_GUOpc4/ansible_module_yum.py&quot;, line 597, in pkg_to_dict\r\n    n,e,v,r,a,repo = pkgstr.split(\'|\')\r\nValueError: need more than 1 value to unpack\r\n', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to example-host closed.\r\n')
fatal: [example-host]: FAILED! =&gt; {
    &quot;changed&quot;: false, 
    &quot;failed&quot;: true, 
    &quot;module_stderr&quot;: &quot;OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to example-host closed.\r\n&quot;, 
    &quot;module_stdout&quot;: &quot;Traceback (most recent call last):\r\n  File \&quot;/tmp/ansible_GUOpc4/ansible_module_yum.py\&quot;, line 1267, in &lt;module&gt;\r\n    main()\r\n  File \&quot;/tmp/ansible_GUOpc4/ansible_module_yum.py\&quot;, line 1225, in main\r\n    params['disablerepo'], params['enablerepo'])}\r\n  File \&quot;/tmp/ansible_GUOpc4/ansible_module_yum.py\&quot;, line 652, in list_stuff\r\n    is_available(module, repoq, stuff, conf_file, qf=qf, installroot=installroot)) if p.strip()]\r\n  File \&quot;/tmp/ansible_GUOpc4/ansible_module_yum.py\&quot;, line 597, in pkg_to_dict\r\n    n,e,v,r,a,repo = pkgstr.split('|')\r\nValueError: need more than 1 value to unpack\r\n&quot;, 
    &quot;msg&quot;: &quot;MODULE FAILURE&quot;, 
    &quot;rc&quot;: 0
}
	to retry, use: --limit @/root/yum_error.retry

PLAY RECAP *****************************************************************************
example-host                   : ok=0    changed=0    unreachable=0    failed=1   "><pre class="notranslate"><code class="notranslate">Using /etc/ansible/ansible.cfg as config file
Loading callback plugin default of type stdout, v2.0 from /usr/lib/python2.7/site-packages/ansible/plugins/callback/__init__.pyc

PLAYBOOK: yum_error.yml ****************************************************************
1 plays in yum_error.yml

PLAY [example-host] ************************************************************************
META: ran handlers

TASK [List ansible packages and register result to print with debug later.] ************
task path: /root/yum_error.yml:7
Using module file /usr/lib/python2.7/site-packages/ansible/modules/packaging/os/yum.py
&lt;example-host&gt; ESTABLISH SSH CONNECTION FOR USER: root
&lt;example-host&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf example-host '/bin/sh -c '"'"'echo ~ &amp;&amp; sleep 0'"'"''
&lt;example-host&gt; (0, '/root\n', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
&lt;example-host&gt; ESTABLISH SSH CONNECTION FOR USER: root
&lt;example-host&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf example-host '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964 `" &amp;&amp; echo ansible-tmp-1500387081.41-174099514042964="` echo /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964 `" ) &amp;&amp; sleep 0'"'"''
&lt;example-host&gt; (0, 'ansible-tmp-1500387081.41-174099514042964=/root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964\n', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
&lt;example-host&gt; PUT /tmp/tmp5PxZfO TO /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py
&lt;example-host&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf '[example-host]'
&lt;example-host&gt; (0, 'sftp&gt; put /tmp/tmp5PxZfO /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py\n', 'OpenSSH_7.4p1 (CentrifyDC build 5.4.1-447) , OpenSSL 1.0.2k-fips  26 Jan 2017\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/centrifydc/ssh/ssh_config\r\ndebug1: /etc/centrifydc/ssh/ssh_config line 55: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug2: Remote version: 3\r\ndebug2: Server supports extension "posix-rename@openssh.com" revision 1\r\ndebug2: Server supports extension "statvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "fstatvfs@openssh.com" revision 2\r\ndebug2: Server supports extension "hardlink@openssh.com" revision 1\r\ndebug2: Server supports extension "fsync@openssh.com" revision 1\r\ndebug3: Sent message fd 6 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -&gt; /root size 0\r\ndebug3: Looking up /tmp/tmp5PxZfO\r\ndebug3: Sent message fd 6 T:17 I:2\r\ndebug3: Received stat reply T:101 I:2\r\ndebug1: Couldn\'t stat remote file: No such file or directory\r\ndebug3: Sent message SSH2_FXP_OPEN I:3 P:/root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py\r\ndebug3: Sent message SSH2_FXP_WRITE I:4 O:0 S:32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 4 32768 bytes at 0\r\ndebug3: Sent message SSH2_FXP_WRITE I:5 O:32768 S:32768\r\ndebug3: Sent message SSH2_FXP_WRITE I:6 O:65536 S:22946\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 5 32768 bytes at 32768\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: In write loop, ack for 6 22946 bytes at 65536\r\ndebug3: Sent message SSH2_FXP_CLOSE I:4\r\ndebug3: SSH2_FXP_STATUS 0\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
&lt;example-host&gt; ESTABLISH SSH CONNECTION FOR USER: root
&lt;example-host&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf example-host '/bin/sh -c '"'"'chmod u+x /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/ /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py &amp;&amp; sleep 0'"'"''
&lt;example-host&gt; (0, '', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\n')
&lt;example-host&gt; ESTABLISH SSH CONNECTION FOR USER: root
&lt;example-host&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/root/.ansible/cp/d96313e4bf -tt example-host '/bin/sh -c '"'"'/usr/bin/python /root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/yum.py; rm -rf "/root/.ansible/tmp/ansible-tmp-1500387081.41-174099514042964/" &gt; /dev/null 2&gt;&amp;1 &amp;&amp; sleep 0'"'"''
&lt;example-host&gt; (0, 'Traceback (most recent call last):\r\n  File "/tmp/ansible_GUOpc4/ansible_module_yum.py", line 1267, in &lt;module&gt;\r\n    main()\r\n  File "/tmp/ansible_GUOpc4/ansible_module_yum.py", line 1225, in main\r\n    params[\'disablerepo\'], params[\'enablerepo\'])}\r\n  File "/tmp/ansible_GUOpc4/ansible_module_yum.py", line 652, in list_stuff\r\n    is_available(module, repoq, stuff, conf_file, qf=qf, installroot=installroot)) if p.strip()]\r\n  File "/tmp/ansible_GUOpc4/ansible_module_yum.py", line 597, in pkg_to_dict\r\n    n,e,v,r,a,repo = pkgstr.split(\'|\')\r\nValueError: need more than 1 value to unpack\r\n', 'OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to example-host closed.\r\n')
fatal: [example-host]: FAILED! =&gt; {
    "changed": false, 
    "failed": true, 
    "module_stderr": "OpenSSH_6.6.1, OpenSSL 1.0.1e-fips 11 Feb 2013\r\ndebug1: Reading configuration data /root/.ssh/config\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 51: Applying options for *\r\ndebug1: auto-mux: Trying existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_forwards: request forwardings: 0 local, 0 remote\r\ndebug3: mux_client_request_session: entering\r\ndebug3: mux_client_request_alive: entering\r\ndebug3: mux_client_request_alive: done pid = 9532\r\ndebug3: mux_client_request_session: session request sent\r\ndebug1: mux_client_request_session: master session id: 2\r\ndebug3: mux_client_read_packet: read header failed: Broken pipe\r\ndebug2: Received exit status from master 0\r\nShared connection to example-host closed.\r\n", 
    "module_stdout": "Traceback (most recent call last):\r\n  File \"/tmp/ansible_GUOpc4/ansible_module_yum.py\", line 1267, in &lt;module&gt;\r\n    main()\r\n  File \"/tmp/ansible_GUOpc4/ansible_module_yum.py\", line 1225, in main\r\n    params['disablerepo'], params['enablerepo'])}\r\n  File \"/tmp/ansible_GUOpc4/ansible_module_yum.py\", line 652, in list_stuff\r\n    is_available(module, repoq, stuff, conf_file, qf=qf, installroot=installroot)) if p.strip()]\r\n  File \"/tmp/ansible_GUOpc4/ansible_module_yum.py\", line 597, in pkg_to_dict\r\n    n,e,v,r,a,repo = pkgstr.split('|')\r\nValueError: need more than 1 value to unpack\r\n", 
    "msg": "MODULE FAILURE", 
    "rc": 0
}
	to retry, use: --limit @/root/yum_error.retry

PLAY RECAP *****************************************************************************
example-host                   : ok=0    changed=0    unreachable=0    failed=1   
</code></pre></div>