Problem on yum module on CentOS 7

Hello,

I’m testing Ansible (version 1.7.1-1) on CentOS 7. Installation is minimalist then I need to install additional packages. Here is the playbook:

`

I think it’s because of the comma behind the }} ?

Yes, take out out the comma.

Thank you very much, without the comma it works perfectly.

However it was not the exact case, I simplified to extract just what was wrong. In fact I’m using a role and get the same error:

`

Oops, I’ve finally found the error: it was deeper, in the task of the installation role:

`

  • name: install mandatory package list
    yum: name={{ item }}, state=present
    with_items: packages

`

You see, in second line, there is a comma that should not be there! Removing it solves the difficulty. Thank you very much again!