# Yum - Async Fails to detect failures?

**URL:** <https://forum.ansible.com/t/yum-async-fails-to-detect-failures/18105>\
**Category:** Ansible Project\
**Created:** [April 28, 2015, 2:26pm UTC](https://forum.ansible.com/t/yum-async-fails-to-detect-failures/18105 "2015-04-28T14:26:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark5](https://avatars.discourse-cdn.com/v4/letter/m/90ced4/32.png) [@Mark5](https://forum.ansible.com/u/Mark5)\
**Post date:** [April 28, 2015, 2:26pm UTC](https://forum.ansible.com/t/yum-async-fails-to-detect-failures/18105/1 "2015-04-28T14:26:42Z")

</div>

Ansible 1.9.0.1 - I’ve run into some odd behavior. Running these two tasks back to back, the first async did nothing, exited pretty quickly, while the second yum actually installed the RPMS.

I’ve observed many times yum + async + with\_items fails to detect failures in the RPM installation process (or just doesn’t do it). I have found that if I don’t do async, the update from RHN, or other things, will cause it to exceed the ssh timeout, and cause ssh connection failures to be reported back… so I’m left with running both? Might try to do it without the with\_items and see if it alleviates the issue…?

- yum: name=“{{ item }}” state=present

with\_items:

- packagea

- packageb

- packagec

- packaged  
async: 600

- yum: name=“{{ item }}” state=present  
with\_items:

- packagea

- packageb

- packagec

- packaged

I’ve observed this back with 1.8.x too, but is really burning my britches at this point, especially when a later task fails because a dependency didn’t get installed.
