<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">Module iam_cert</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.0.0
  config file = 
  configured module search path = Default w/o overrides
  python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]"><pre class="notranslate"><code class="notranslate">ansible 2.3.0.0
  config file = 
  configured module search path = Default w/o overrides
  python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">No changes</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Ubuntu Linux 16.04 install via PIP</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">iam_cert task fails with an error message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [10.0.21.71]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;failed&quot;: true, &quot;msg&quot;: &quot;Boto is required for this module&quot;}"><pre class="notranslate"><code class="notranslate">fatal: [10.0.21.71]: FAILED! =&gt; {"changed": false, "failed": true, "msg": "Boto is required for this module"}
</code></pre></div>
<p dir="auto">Boto and Boto3 are installed and work fine for the rest of the scripts so it appears as if this is restricted to this module. Failure is independent of the state of the <code class="notranslate">validate_certs</code> flag.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">The task is as follows:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Set a key on AWS for the HTTPS load balancer
  iam_cert:
    name: iam_cert_name
    state: present
    cert: &quot;{{ ssl_cert }}&quot;
    key: &quot;{{ ssl_keys }}&quot;
    cert_chain: &quot;{{ ssl_chain }}&quot;
  when: cloud_vendor == &quot;aws&quot;"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Set a key on AWS for the HTTPS load balancer</span>
  <span class="pl-ent">iam_cert</span>:
    <span class="pl-ent">name</span>: <span class="pl-s">iam_cert_name</span>
    <span class="pl-ent">state</span>: <span class="pl-s">present</span>
    <span class="pl-ent">cert</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ ssl_cert }}<span class="pl-pds">"</span></span>
    <span class="pl-ent">key</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ ssl_keys }}<span class="pl-pds">"</span></span>
    <span class="pl-ent">cert_chain</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ ssl_chain }}<span class="pl-pds">"</span></span>
  <span class="pl-ent">when</span>: <span class="pl-s">cloud_vendor == "aws"</span></pre></div>

<p dir="auto">Failure because the module reports "Boto not found"</p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Uploaded certificate details</p>
<h5 dir="auto">ACTUAL RESULTS</h5>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="task path: /home/davehornco/aws-janobi/roles/proxy/tasks/main.yml:52
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/cloud/amazon/iam_cert.py
&lt;10.0.17.158&gt; ESTABLISH SSH CONNECTION FOR USER: davehornco
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/cloud/amazon/iam_cert.py
&lt;10.0.21.71&gt; ESTABLISH SSH CONNECTION FOR USER: davehornco
&lt;10.0.17.158&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile=&quot;/home/davehornco/.ssh/aws-dev&quot;' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/9e46df15d8 10.0.17.158 '/bin/sh -c '&quot;'&quot;'echo ~ &amp;&amp; sleep 0'&quot;'&quot;''
&lt;10.0.21.71&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile=&quot;/home/davehornco/.ssh/aws-dev&quot;' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/5f9cbb3064 10.0.21.71 '/bin/sh -c '&quot;'&quot;'echo ~ &amp;&amp; sleep 0'&quot;'&quot;''
&lt;10.0.21.71&gt; (0, '/home/davehornco\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18465\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 &lt;10.0.17.158&gt; (0, '/home/davehornco\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18462\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')
from master 0\r\n')
&lt;10.0.17.158&gt; ESTABLISH SSH CONNECTION FOR USER: davehornco
&lt;10.0.21.71&gt; ESTABLISH SSH CONNECTION FOR USER: davehornco
&lt;10.0.17.158&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile=&quot;/home/davehornco/.ssh/aws-dev&quot;' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/9e46df15d8 10.0.17.158 '/bin/sh -c '&quot;'&quot;'( umask 77 &amp;&amp; mkdir -p &quot;` echo /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095 `&quot; &amp;&amp; echo ansible-tmp-1494661506.94-77749697865095=&quot;` echo /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095 `&quot; ) &amp;&amp; sleep 0'&quot;'&quot;''
&lt;10.0.21.71&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile=&quot;/home/davehornco/.ssh/aws-dev&quot;' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/5f9cbb3064 10.0.21.71 '/bin/sh -c '&quot;'&quot;'( umask 77 &amp;&amp; mkdir -p &quot;` echo /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550 `&quot; &amp;&amp; echo ansible-tmp-1494661506.94-269551299808550=&quot;` echo /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550 `&quot; ) &amp;&amp; sleep 0'&quot;'&quot;''
&lt;10.0.17.158&gt; (0, 'ansible-tmp-1494661506.94-77749697865095=/home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18462\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;10.0.17.158&gt; PUT /tmp/tmp1XsqVZ TO /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095/iam_cert.py
&lt;10.0.17.158&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile=&quot;/home/davehornco/.ssh/aws-dev&quot;' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/9e46df15d8 '[10.0.17.158]'
&lt;10.0.21.71&gt; (0, 'ansible-tmp-1494661506.94-269551299808550=/home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18465\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;10.0.21.71&gt; PUT /tmp/tmpfErvCB TO /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550/iam_cert.py
&lt;10.0.21.71&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile=&quot;/home/davehornco/.ssh/aws-dev&quot;' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/5f9cbb3064 '[10.0.21.71]'
&lt;10.0.17.158&gt; (0, 'sftp&gt; put /tmp/tmp1XsqVZ /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095/iam_cert.py\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18462\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 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -&gt; /home/davehornco size 0\r\ndebug3: Looking up /tmp/tmp1XsqVZ\r\ndebug3: Sent message fd 5 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:/home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095/iam_cert.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:3648\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 3648 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;10.0.17.158&gt; ESTABLISH SSH CONNECTION FOR USER: davehornco
&lt;10.0.17.158&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile=&quot;/home/davehornco/.ssh/aws-dev&quot;' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/9e46df15d8 10.0.17.158 '/bin/sh -c '&quot;'&quot;'chmod u+x /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095/ /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095/iam_cert.py &amp;&amp; sleep 0'&quot;'&quot;''
&lt;10.0.21.71&gt; (0, 'sftp&gt; put /tmp/tmpfErvCB /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550/iam_cert.py\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18465\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 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -&gt; /home/davehornco size 0\r\ndebug3: Looking up /tmp/tmpfErvCB\r\ndebug3: Sent message fd 5 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:/home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550/iam_cert.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:3648\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 3648 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;10.0.21.71&gt; ESTABLISH SSH CONNECTION FOR USER: davehornco
&lt;10.0.21.71&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile=&quot;/home/davehornco/.ssh/aws-dev&quot;' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/5f9cbb3064 10.0.21.71 '/bin/sh -c '&quot;'&quot;'chmod u+x /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550/ /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550/iam_cert.py &amp;&amp; sleep 0'&quot;'&quot;''
&lt;10.0.17.158&gt; (0, '', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18462\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;10.0.17.158&gt; ESTABLISH SSH CONNECTION FOR USER: davehornco
&lt;10.0.17.158&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile=&quot;/home/davehornco/.ssh/aws-dev&quot;' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/9e46df15d8 -tt 10.0.17.158 '/bin/sh -c '&quot;'&quot;'sudo -H -S -n -u root /bin/sh -c '&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'echo BECOME-SUCCESS-yticsqsyyxklqvvcexagsghtzplbfgoa; /usr/bin/python /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095/iam_cert.py; rm -rf &quot;/home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095/&quot; &gt; /dev/null 2&gt;&amp;1'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;' &amp;&amp; sleep 0'&quot;'&quot;''
&lt;10.0.21.71&gt; (0, '', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18465\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;10.0.21.71&gt; ESTABLISH SSH CONNECTION FOR USER: davehornco
&lt;10.0.21.71&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile=&quot;/home/davehornco/.ssh/aws-dev&quot;' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/5f9cbb3064 -tt 10.0.21.71 '/bin/sh -c '&quot;'&quot;'sudo -H -S -n -u root /bin/sh -c '&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'echo BECOME-SUCCESS-bifuoqxzaombbtliyfahkaufxnlxkvlh; /usr/bin/python /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550/iam_cert.py; rm -rf &quot;/home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550/&quot; &gt; /dev/null 2&gt;&amp;1'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;'&quot;' &amp;&amp; sleep 0'&quot;'&quot;''
&lt;10.0.21.71&gt; (0, '\r\n{&quot;msg&quot;: &quot;Boto is required for this module&quot;, &quot;failed&quot;: true, &quot;invocation&quot;: {&quot;module_args&quot;: {&quot;profile&quot;: null, &quot;new_name&quot;: null, &quot;dup_ok&quot;: false, &quot;new_path&quot;: null, &quot;name&quot;: &quot;iam_cert_name&quot;, &quot;security_token&quot;: null, &quot;cert&quot;: &quot;/home/bob/.acme.sh/dev.horn.co/dev.horn.co.cer&quot;, &quot;region&quot;: null, &quot;aws_secret_key&quot;: null, &quot;aws_access_key&quot;: null, &quot;state&quot;: &quot;present&quot;, &quot;key&quot;: &quot;/home/bob/.acme.sh/dev.horn.co/dev.horn.co.key&quot;, &quot;ec2_url&quot;: null, &quot;path&quot;: &quot;/&quot;, &quot;validate_certs&quot;: true, &quot;cert_chain&quot;: &quot;/home/bob/.acme.sh/dev.horn.co/fullchain.cer&quot;}}}\r\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18465\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 10.0.21.71 closed.\r\n')
&lt;10.0.17.158&gt; (0, '\r\n{&quot;msg&quot;: &quot;Boto is required for this module&quot;, &quot;failed&quot;: true, &quot;invocation&quot;: {&quot;module_args&quot;: {&quot;profile&quot;: null, &quot;new_name&quot;: null, &quot;dup_ok&quot;: false, &quot;new_path&quot;: null, &quot;name&quot;: &quot;iam_cert_name&quot;, &quot;security_token&quot;: null, &quot;cert&quot;: &quot;/home/bob/.acme.sh/dev.horn.co/dev.horn.co.cer&quot;, &quot;region&quot;: null, &quot;aws_secret_key&quot;: null, &quot;aws_access_key&quot;: null, &quot;state&quot;: &quot;present&quot;, &quot;key&quot;: &quot;/home/bob/.acme.sh/dev.horn.co/dev.horn.co.key&quot;, &quot;ec2_url&quot;: null, &quot;path&quot;: &quot;/&quot;, &quot;validate_certs&quot;: true, &quot;cert_chain&quot;: &quot;/home/bob/.acme.sh/dev.horn.co/fullchain.cer&quot;}}}\r\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18462\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 10.0.17.158 closed.\r\n')
fatal: [10.0.21.71]: FAILED! =&gt; {
    &quot;changed&quot;: false, 
    &quot;failed&quot;: true, 
    &quot;invocation&quot;: {
        &quot;module_args&quot;: {
            &quot;aws_access_key&quot;: null, 
            &quot;aws_secret_key&quot;: null, 
            &quot;cert&quot;: &quot;somefile&quot;, 
            &quot;cert_chain&quot;: &quot;somefile&quot;, 
            &quot;dup_ok&quot;: false, 
            &quot;ec2_url&quot;: null, 
            &quot;key&quot;: &quot;somefile&quot;, 
            &quot;name&quot;: &quot;iam_cert_name&quot;, 
            &quot;new_name&quot;: null, 
            &quot;new_path&quot;: null, 
            &quot;path&quot;: &quot;/&quot;, 
            &quot;profile&quot;: null, 
            &quot;region&quot;: null, 
            &quot;security_token&quot;: null, 
            &quot;state&quot;: &quot;present&quot;, 
            &quot;validate_certs&quot;: true
        }
    }, 
    &quot;msg&quot;: &quot;Boto is required for this module&quot;
}
fatal: [10.0.17.158]: FAILED! =&gt; {
    &quot;changed&quot;: false, 
    &quot;failed&quot;: true, 
    &quot;invocation&quot;: {
        &quot;module_args&quot;: {
            &quot;aws_access_key&quot;: null, 
            &quot;aws_secret_key&quot;: null, 
            &quot;cert&quot;: &quot;somefile&quot;, 
            &quot;cert_chain&quot;: &quot;somefile&quot;, 
            &quot;dup_ok&quot;: false, 
            &quot;ec2_url&quot;: null, 
            &quot;key&quot;: &quot;somefile&quot;, 
            &quot;name&quot;: &quot;iam_cert_name&quot;, 
            &quot;new_name&quot;: null, 
            &quot;new_path&quot;: null, 
            &quot;path&quot;: &quot;/&quot;, 
            &quot;profile&quot;: null, 
            &quot;region&quot;: null, 
            &quot;security_token&quot;: null, 
            &quot;state&quot;: &quot;present&quot;, 
            &quot;validate_certs&quot;: true
        }
    }, 
    &quot;msg&quot;: &quot;Boto is required for this module&quot;
}"><pre class="notranslate"><code class="notranslate">task path: /home/davehornco/aws-janobi/roles/proxy/tasks/main.yml:52
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/cloud/amazon/iam_cert.py
&lt;10.0.17.158&gt; ESTABLISH SSH CONNECTION FOR USER: davehornco
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/cloud/amazon/iam_cert.py
&lt;10.0.21.71&gt; ESTABLISH SSH CONNECTION FOR USER: davehornco
&lt;10.0.17.158&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/home/davehornco/.ssh/aws-dev"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/9e46df15d8 10.0.17.158 '/bin/sh -c '"'"'echo ~ &amp;&amp; sleep 0'"'"''
&lt;10.0.21.71&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/home/davehornco/.ssh/aws-dev"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/5f9cbb3064 10.0.21.71 '/bin/sh -c '"'"'echo ~ &amp;&amp; sleep 0'"'"''
&lt;10.0.21.71&gt; (0, '/home/davehornco\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18465\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 &lt;10.0.17.158&gt; (0, '/home/davehornco\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18462\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')
from master 0\r\n')
&lt;10.0.17.158&gt; ESTABLISH SSH CONNECTION FOR USER: davehornco
&lt;10.0.21.71&gt; ESTABLISH SSH CONNECTION FOR USER: davehornco
&lt;10.0.17.158&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/home/davehornco/.ssh/aws-dev"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/9e46df15d8 10.0.17.158 '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095 `" &amp;&amp; echo ansible-tmp-1494661506.94-77749697865095="` echo /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095 `" ) &amp;&amp; sleep 0'"'"''
&lt;10.0.21.71&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/home/davehornco/.ssh/aws-dev"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/5f9cbb3064 10.0.21.71 '/bin/sh -c '"'"'( umask 77 &amp;&amp; mkdir -p "` echo /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550 `" &amp;&amp; echo ansible-tmp-1494661506.94-269551299808550="` echo /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550 `" ) &amp;&amp; sleep 0'"'"''
&lt;10.0.17.158&gt; (0, 'ansible-tmp-1494661506.94-77749697865095=/home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18462\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;10.0.17.158&gt; PUT /tmp/tmp1XsqVZ TO /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095/iam_cert.py
&lt;10.0.17.158&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/home/davehornco/.ssh/aws-dev"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/9e46df15d8 '[10.0.17.158]'
&lt;10.0.21.71&gt; (0, 'ansible-tmp-1494661506.94-269551299808550=/home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18465\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;10.0.21.71&gt; PUT /tmp/tmpfErvCB TO /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550/iam_cert.py
&lt;10.0.21.71&gt; SSH: EXEC sftp -b - -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/home/davehornco/.ssh/aws-dev"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/5f9cbb3064 '[10.0.21.71]'
&lt;10.0.17.158&gt; (0, 'sftp&gt; put /tmp/tmp1XsqVZ /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095/iam_cert.py\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18462\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 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -&gt; /home/davehornco size 0\r\ndebug3: Looking up /tmp/tmp1XsqVZ\r\ndebug3: Sent message fd 5 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:/home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095/iam_cert.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:3648\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 3648 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;10.0.17.158&gt; ESTABLISH SSH CONNECTION FOR USER: davehornco
&lt;10.0.17.158&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/home/davehornco/.ssh/aws-dev"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/9e46df15d8 10.0.17.158 '/bin/sh -c '"'"'chmod u+x /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095/ /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095/iam_cert.py &amp;&amp; sleep 0'"'"''
&lt;10.0.21.71&gt; (0, 'sftp&gt; put /tmp/tmpfErvCB /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550/iam_cert.py\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18465\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 5 T:16 I:1\r\ndebug3: SSH_FXP_REALPATH . -&gt; /home/davehornco size 0\r\ndebug3: Looking up /tmp/tmpfErvCB\r\ndebug3: Sent message fd 5 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:/home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550/iam_cert.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:3648\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 3648 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;10.0.21.71&gt; ESTABLISH SSH CONNECTION FOR USER: davehornco
&lt;10.0.21.71&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/home/davehornco/.ssh/aws-dev"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/5f9cbb3064 10.0.21.71 '/bin/sh -c '"'"'chmod u+x /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550/ /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550/iam_cert.py &amp;&amp; sleep 0'"'"''
&lt;10.0.17.158&gt; (0, '', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18462\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;10.0.17.158&gt; ESTABLISH SSH CONNECTION FOR USER: davehornco
&lt;10.0.17.158&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/home/davehornco/.ssh/aws-dev"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/9e46df15d8 -tt 10.0.17.158 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-yticsqsyyxklqvvcexagsghtzplbfgoa; /usr/bin/python /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095/iam_cert.py; rm -rf "/home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-77749697865095/" &gt; /dev/null 2&gt;&amp;1'"'"'"'"'"'"'"'"' &amp;&amp; sleep 0'"'"''
&lt;10.0.21.71&gt; (0, '', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18465\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;10.0.21.71&gt; ESTABLISH SSH CONNECTION FOR USER: davehornco
&lt;10.0.21.71&gt; SSH: EXEC ssh -vvv -C -o ControlMaster=auto -o ControlPersist=60s -o 'IdentityFile="/home/davehornco/.ssh/aws-dev"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=davehornco -o ConnectTimeout=10 -o ControlPath=/home/davehornco/.ansible/cp/5f9cbb3064 -tt 10.0.21.71 '/bin/sh -c '"'"'sudo -H -S -n -u root /bin/sh -c '"'"'"'"'"'"'"'"'echo BECOME-SUCCESS-bifuoqxzaombbtliyfahkaufxnlxkvlh; /usr/bin/python /home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550/iam_cert.py; rm -rf "/home/davehornco/.ansible/tmp/ansible-tmp-1494661506.94-269551299808550/" &gt; /dev/null 2&gt;&amp;1'"'"'"'"'"'"'"'"' &amp;&amp; sleep 0'"'"''
&lt;10.0.21.71&gt; (0, '\r\n{"msg": "Boto is required for this module", "failed": true, "invocation": {"module_args": {"profile": null, "new_name": null, "dup_ok": false, "new_path": null, "name": "iam_cert_name", "security_token": null, "cert": "/home/bob/.acme.sh/dev.horn.co/dev.horn.co.cer", "region": null, "aws_secret_key": null, "aws_access_key": null, "state": "present", "key": "/home/bob/.acme.sh/dev.horn.co/dev.horn.co.key", "ec2_url": null, "path": "/", "validate_certs": true, "cert_chain": "/home/bob/.acme.sh/dev.horn.co/fullchain.cer"}}}\r\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18465\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 10.0.21.71 closed.\r\n')
&lt;10.0.17.158&gt; (0, '\r\n{"msg": "Boto is required for this module", "failed": true, "invocation": {"module_args": {"profile": null, "new_name": null, "dup_ok": false, "new_path": null, "name": "iam_cert_name", "security_token": null, "cert": "/home/bob/.acme.sh/dev.horn.co/dev.horn.co.cer", "region": null, "aws_secret_key": null, "aws_access_key": null, "state": "present", "key": "/home/bob/.acme.sh/dev.horn.co/dev.horn.co.key", "ec2_url": null, "path": "/", "validate_certs": true, "cert_chain": "/home/bob/.acme.sh/dev.horn.co/fullchain.cer"}}}\r\n', 'OpenSSH_7.2p2 Ubuntu-4ubuntu2.2, OpenSSL 1.0.2g  1 Mar 2016\r\ndebug1: Reading configuration data /home/davehornco/.ssh/config\r\ndebug1: /home/davehornco/.ssh/config line 1: Applying options for 10.*\r\ndebug2: add_identity_file: ignoring duplicate key /home/davehornco/.ssh/aws-dev\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: 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 = 18462\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 10.0.17.158 closed.\r\n')
fatal: [10.0.21.71]: FAILED! =&gt; {
    "changed": false, 
    "failed": true, 
    "invocation": {
        "module_args": {
            "aws_access_key": null, 
            "aws_secret_key": null, 
            "cert": "somefile", 
            "cert_chain": "somefile", 
            "dup_ok": false, 
            "ec2_url": null, 
            "key": "somefile", 
            "name": "iam_cert_name", 
            "new_name": null, 
            "new_path": null, 
            "path": "/", 
            "profile": null, 
            "region": null, 
            "security_token": null, 
            "state": "present", 
            "validate_certs": true
        }
    }, 
    "msg": "Boto is required for this module"
}
fatal: [10.0.17.158]: FAILED! =&gt; {
    "changed": false, 
    "failed": true, 
    "invocation": {
        "module_args": {
            "aws_access_key": null, 
            "aws_secret_key": null, 
            "cert": "somefile", 
            "cert_chain": "somefile", 
            "dup_ok": false, 
            "ec2_url": null, 
            "key": "somefile", 
            "name": "iam_cert_name", 
            "new_name": null, 
            "new_path": null, 
            "path": "/", 
            "profile": null, 
            "region": null, 
            "security_token": null, 
            "state": "present", 
            "validate_certs": true
        }
    }, 
    "msg": "Boto is required for this module"
}
</code></pre></div>
<h4 dir="auto">ISSUE TYPE</h4>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h4 dir="auto">COMPONENT NAME</h4>
<ul dir="auto">
<li>command</li>
<li>shell</li>
<li>yum</li>
<li>dnf</li>
</ul>
<h4 dir="auto">ANSIBLE VERSION</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.0.0
  config file = /home/msanabria/repos/ansible-workstation/ansible.cfg
  configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.2.0.0
  config file = /home/msanabria/repos/ansible-workstation/ansible.cfg
  configured module search path = Default w/o overrides
</code></pre></div>
<h4 dir="auto">CONFIGURATION</h4>
<p dir="auto"><em>ansible.cfg</em>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[defaults]
ansible_managed = This file is managed by Ansible. All changes will be overwritten.
inventory = hosts.yml
retry_files_enabled = false

[privilege_escalation]
become_ask_pass = True"><pre class="notranslate"><code class="notranslate">[defaults]
ansible_managed = This file is managed by Ansible. All changes will be overwritten.
inventory = hosts.yml
retry_files_enabled = false

[privilege_escalation]
become_ask_pass = True
</code></pre></div>
<h4 dir="auto">OS / ENVIRONMENT</h4>
<ul dir="auto">
<li>Control node:<br>
Fedora release 25 (Twenty Five)</li>
<li>Managed node:<br>
Fedora release 25 (Twenty Five)</li>
</ul>
<h4 dir="auto">SUMMARY</h4>
<p dir="auto">When running a playbook with --tags options that specifies a tag of a task or tasks within a role, any dependencies of that role are not executed.</p>
<h4 dir="auto">STEPS TO REPRODUCE</h4>
<p dir="auto">tree:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".
├── ansible.cfg
├── hosts.yml
├── roles
│   ├── apps
│   │   ├── meta
│   │   │   └── main.yml
│   │   └── tasks
│   │       ├── chrome.yml
│   │       └── main.yml
│   └── common
│       ├── meta
│       │   └── main.yml
│       └── tasks
│           └── main.yml
└── workstation_setup.yml
"><pre class="notranslate"><code class="notranslate">.
├── ansible.cfg
├── hosts.yml
├── roles
│   ├── apps
│   │   ├── meta
│   │   │   └── main.yml
│   │   └── tasks
│   │       ├── chrome.yml
│   │       └── main.yml
│   └── common
│       ├── meta
│       │   └── main.yml
│       └── tasks
│           └── main.yml
└── workstation_setup.yml

</code></pre></div>
<p dir="auto"><em>hosts.yml</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[workstation]
localhost ansible_connection=local"><pre class="notranslate"><code class="notranslate">[workstation]
localhost ansible_connection=local
</code></pre></div>
<p dir="auto"><em>roles/apps/meta/main.yml</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---
dependencies:
  - { role: common }"><pre class="notranslate"><code class="notranslate">---
dependencies:
  - { role: common }
</code></pre></div>
<p dir="auto"><em>roles/apps/tasks/chrome.yml</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---
- name: Install Google Chrome
  dnf:
    ..."><pre class="notranslate"><code class="notranslate">---
- name: Install Google Chrome
  dnf:
    ...
</code></pre></div>
<p dir="auto"><em>roles/apps/tasks/main.yml</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---
- name: Include chrome.yml
  include: chrome.yml
  tags:
    - chrome"><pre class="notranslate"><code class="notranslate">---
- name: Include chrome.yml
  include: chrome.yml
  tags:
    - chrome
</code></pre></div>
<p dir="auto"><em>roles/common/meta/main.yml</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---
allow_duplicates: yes"><pre class="notranslate"><code class="notranslate">---
allow_duplicates: yes
</code></pre></div>
<p dir="auto"><em>roles/common/tasks/main.yml</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---
- name: Install common packages
  dnf:
    ..."><pre class="notranslate"><code class="notranslate">---
- name: Install common packages
  dnf:
    ...
</code></pre></div>
<p dir="auto"><em>workstation_setup.yml</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---
- name: Playbook to configure a Fedora workstation
  hosts: workstation
  become: yes

  roles:
    - { role: common }
    - { role: apps }"><pre class="notranslate"><code class="notranslate">---
- name: Playbook to configure a Fedora workstation
  hosts: workstation
  become: yes

  roles:
    - { role: common }
    - { role: apps }
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Expected Ansible to execute the dependency of the role with the tagged task(s).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible-playbook workstation_setup.yml --tags chrome --list-tasks 

playbook: workstation_setup.yml

  play #1 (workstation): Playbook to configure a Fedora workstation	TAGS: []
    tasks:
      common : Install common packages	TAGS: []
      apps : Install Google Chrome	TAGS: [chrome]"><pre class="notranslate"><code class="notranslate">$ ansible-playbook workstation_setup.yml --tags chrome --list-tasks 

playbook: workstation_setup.yml

  play #1 (workstation): Playbook to configure a Fedora workstation	TAGS: []
    tasks:
      common : Install common packages	TAGS: []
      apps : Install Google Chrome	TAGS: [chrome]
</code></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">Ansible only executes the tagged task(s) and not any dependencies.</p>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible-playbook workstation_setup.yml --tags chrome --list-tasks

playbook: workstation_setup.yml

  play #1 (workstation): Playbook to configure a Fedora workstation	TAGS: []
    tasks:
      apps : Install Google Chrome	TAGS: [chrome]"><pre class="notranslate"><code class="notranslate">$ ansible-playbook workstation_setup.yml --tags chrome --list-tasks

playbook: workstation_setup.yml

  play #1 (workstation): Playbook to configure a Fedora workstation	TAGS: []
    tasks:
      apps : Install Google Chrome	TAGS: [chrome]
</code></pre></div>