# yum module and with\_items: confusing error output

**URL:** <https://forum.ansible.com/t/yum-module-and-with-items-confusing-error-output/22855>\
**Category:** Ansible Project\
**Created:** [October 21, 2016, 1:47pm UTC](https://forum.ansible.com/t/yum-module-and-with-items-confusing-error-output/22855 "2016-10-21T13:47:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julien\_Tognazzi](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@Julien\_Tognazzi](https://forum.ansible.com/u/Julien_Tognazzi)\
**Post date:** [October 21, 2016, 1:47pm UTC](https://forum.ansible.com/t/yum-module-and-with-items-confusing-error-output/22855/1 "2016-10-21T13:47:20Z")

</div>

Dear list,

I noticed the following behaviour with ansible 2.1.1.0

the following play:  
`

- hosts: all  
become: true

tasks:

- name: Install required packages  
yum: name={{ item }} state=latest update\_cache=yes  
with\_items:
- donotexist-1.2

`

output:  
`

$ ansible-playbook -i myinventory yum.yml

PLAY [all] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Install required packages] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
Friday 21 October 2016 15:35:48 +0200 (0:00:00.050) 0:00:00.050 \*\*\*\*\*\*\*\*  
ok: [myserver] =\> (item=[u’donotexist-1.2’])

NO MORE HOSTS LEFT \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
myserver : ok=0 changed=0 unreachable=0 failed=1

Friday 21 October 2016 15:36:03 +0200 (0:00:14.521) 0:00:14.572 \*\*\*\*\*\*\*\*
