yum module and with_items: confusing error output

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 ********