<p dir="auto">This has started to happen to me yesterday out of the blue. I have Mac Pro OS v 10.9.5. Now I can't even provision my machines properly - Mac just reboots (it hangs on the first run, after I ^C and run another one - it reboots).<br>
I've tried applying fix from the note above to sshpass 1.05 and tried to bing 1.04 (which doesn't work at all).<br>
Are there any solutions for the Mac users?<br>
I've tried to provide pass in the HOSTS file and with --ask-pass - same result</p>
<p dir="auto">[This is the same issue that was discussed here - https://github.com/<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="23120845" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/5007" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/5007/hovercard" href="https://github.com/ansible/ansible/issues/5007">/issues/5007</a>]</p>
<h5 dir="auto">ISSUE TYPE</h5>

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

<ul dir="auto">
<li>Dependencies</li>
<li>Conditionals</li>
<li>Playbooks</li>
</ul>
<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 = /opt/uss/ansible/config/test.cfg
  configured module search path = [u'/usr/share/ansible']
  python version = 2.7.5 (default, Oct 11 2015, 17:47:16) [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0
  config file = /opt/uss/ansible/config/test.cfg
  configured module search path = [u'/usr/share/ansible']
  python version = 2.7.5 (default, Oct 11 2015, 17:47:16) [GCC 4.8.3 20140911 (Red Hat 4.8.3-9)]
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>

<p dir="auto">N/A</p>
<h5 dir="auto">SUMMARY</h5>

<p dir="auto">If a server is skipped in a playbook, the dependencies for subsequent roles do not run.</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.yml ------

dev # rhel box
centtest # rhel box
cent6test # rhel box
sles # suse box

----- site.yml -----

- hosts: all
  roles:

    - { role: upgrade_kernel, when: ansible_os_family != 'Suse' }
    - { role: uptodate }

----- roles/upgrade_kernel/meta/main.yml -----

allow_duplicates: yes
dependencies:
  - { role: preinstall }

----- roles/uptodate/meta/main.yml -----

allow_duplicates: yes
dependencies:
  - { role: preinstall }

----- roles/preinstall/tasks/main.yml -----

- name: (main) Preinstall Checks
  include: &quot;{{ ansible_pkg_mgr }}.yml&quot;

----- roles/preinstall/tasks/yum.yml ------

- name: (yum) [1/2] Cache is dispelled
  file:
    path: &quot;/var/cache/yum/&quot;
    state: absent

- name: (yum) [2/2] Execute yum clean
  command: /usr/bin/yum clean all

----- roles/preinstall/tasks/zypper.yml -----

- name: (zypper) [1/1] Cache is dispelled
  file:
    path: &quot;/var/cache/zypper/&quot;
    state: absent
"><pre class="notranslate">---<span class="pl-s">-- hosts.yml ------</span>

<span class="pl-s">dev </span><span class="pl-c"><span class="pl-c">#</span> rhel box</span>
<span class="pl-s">centtest </span><span class="pl-c"><span class="pl-c">#</span> rhel box</span>
<span class="pl-s">cent6test </span><span class="pl-c"><span class="pl-c">#</span> rhel box</span>
<span class="pl-s">sles </span><span class="pl-c"><span class="pl-c">#</span> suse box</span>

---<span class="pl-s">-- site.yml -----</span>

- <span class="pl-ent">hosts</span>: <span class="pl-s">all</span>
  <span class="pl-ent">roles</span>:

    - <span class="pl-s">{ role: upgrade_kernel, when: ansible_os_family != 'Suse' }</span>
    - <span class="pl-s">{ role: uptodate }</span>

---<span class="pl-s">-- roles/upgrade_kernel/meta/main.yml -----</span>

<span class="pl-ent">allow_duplicates</span>: <span class="pl-s">yes</span>
<span class="pl-ent">dependencies</span>:
  - <span class="pl-s">{ role: preinstall }</span>

---<span class="pl-s">-- roles/uptodate/meta/main.yml -----</span>

<span class="pl-ent">allow_duplicates</span>: <span class="pl-s">yes</span>
<span class="pl-ent">dependencies</span>:
  - <span class="pl-s">{ role: preinstall }</span>

---<span class="pl-s">-- roles/preinstall/tasks/main.yml -----</span>

- <span class="pl-ent">name</span>: <span class="pl-s">(main) Preinstall Checks</span>
  <span class="pl-ent">include</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ ansible_pkg_mgr }}.yml<span class="pl-pds">"</span></span>

---<span class="pl-s">-- roles/preinstall/tasks/yum.yml ------</span>

- <span class="pl-ent">name</span>: <span class="pl-s">(yum) [1/2] Cache is dispelled</span>
  <span class="pl-ent">file</span>:
    <span class="pl-ent">path</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/cache/yum/<span class="pl-pds">"</span></span>
    <span class="pl-ent">state</span>: <span class="pl-s">absent</span>

- <span class="pl-ent">name</span>: <span class="pl-s">(yum) [2/2] Execute yum clean</span>
  <span class="pl-ent">command</span>: <span class="pl-s">/usr/bin/yum clean all</span>

---<span class="pl-s">-- roles/preinstall/tasks/zypper.yml -----</span>

- <span class="pl-ent">name</span>: <span class="pl-s">(zypper) [1/1] Cache is dispelled</span>
  <span class="pl-ent">file</span>:
    <span class="pl-ent">path</span>: <span class="pl-s"><span class="pl-pds">"</span>/var/cache/zypper/<span class="pl-pds">"</span></span>
    <span class="pl-ent">state</span>: <span class="pl-s">absent</span>
</pre></div>

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

<p dir="auto">I expected that even though a SUSE box would be skipped for the first role in the playbook, that when it ran the second time, it would have its dependency run.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>


<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [preinstall : (main) Preinstall Checks] ******************************
task path: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/main.yml:3
skipping: [sles] =&gt; { 
    &quot;changed&quot;:false,  
    &quot;skip_reason&quot;: &quot;Conditional result was False&quot;,
    &quot;skipped&quot;: true }                                                                                                                                                                  

included: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/yum.yml for cent6test, dev, centtest

#
#
# The three servers run preinstall successfully, and then the rest of upgrade_kernel runs and finishes successfully
#
# 

TASK [preinstall : (main) Preinstall Checks] *************************
task path: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/main.yml:3
included: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/zypper.yml for sles 
META: noop
META: noop

TASK [preinstall : (zypper) [1/1] Cache is dispelled] ****************************
task path: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/zypper.yml:3
META: noop
skipping: [sles] =&gt; {
    &quot;changed&quot;: false,
    &quot;skip_reason&quot;: &quot;Conditional result was False&quot;,
    &quot;skipped&quot;: true
}
META: noop
META: noop

TASK [uptodate : (main) [1/1] Update all packages] *******************************
task path: /ansible/orchest/ansible-orchestrator-roles/uptodate/tasks/main.yml:3
included: /ansible/orchest/ansible-orchestrator-roles/uptodate/tasks/yum.yml for cent6test, dev, centtest
included: /ansible/orchest/ansible-orchestrator-roles/uptodate/tasks/zypper.yml for sles"><pre class="notranslate"><code class="notranslate">TASK [preinstall : (main) Preinstall Checks] ******************************
task path: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/main.yml:3
skipping: [sles] =&gt; { 
    "changed":false,  
    "skip_reason": "Conditional result was False",
    "skipped": true }                                                                                                                                                                  

included: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/yum.yml for cent6test, dev, centtest

#
#
# The three servers run preinstall successfully, and then the rest of upgrade_kernel runs and finishes successfully
#
# 

TASK [preinstall : (main) Preinstall Checks] *************************
task path: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/main.yml:3
included: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/zypper.yml for sles 
META: noop
META: noop

TASK [preinstall : (zypper) [1/1] Cache is dispelled] ****************************
task path: /ansible/orchest/ansible-orchestrator-roles/preinstall/tasks/zypper.yml:3
META: noop
skipping: [sles] =&gt; {
    "changed": false,
    "skip_reason": "Conditional result was False",
    "skipped": true
}
META: noop
META: noop

TASK [uptodate : (main) [1/1] Update all packages] *******************************
task path: /ansible/orchest/ansible-orchestrator-roles/uptodate/tasks/main.yml:3
included: /ansible/orchest/ansible-orchestrator-roles/uptodate/tasks/yum.yml for cent6test, dev, centtest
included: /ansible/orchest/ansible-orchestrator-roles/uptodate/tasks/zypper.yml for sles
</code></pre></div>
<h5 dir="auto">Workaround</h5>
<p dir="auto">Switch the order of the playbooks. This way all servers' dependencies are accepted initially.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- hosts: all
  roles:
    - { role: uptodate }
    - { role: upgrade_kernel, when: ansible_os_family != 'Suse' }"><pre class="notranslate"><code class="notranslate">- hosts: all
  roles:
    - { role: uptodate }
    - { role: upgrade_kernel, when: ansible_os_family != 'Suse' }
</code></pre></div>
<p dir="auto">This does not seem scalable, and does seem prone to error.</p>
<h5 dir="auto">See Also</h5>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="132996888" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/14438" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/14438/hovercard" href="https://github.com/ansible/ansible/issues/14438">#14438</a></p>
<p dir="auto"><a href="https://groups.google.com/forum/#!topic/ansible-project/24k-m1h4nnk" rel="nofollow">https://groups.google.com/forum/#!topic/ansible-project/24k-m1h4nnk</a></p>