Yum - Async Fails to detect failures?

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.