yum groupinstall failed with "with_items"

Hi,

I am having a bit of trouble understanding why the yum module is not working when I use “with_items”. I am using ansible 2.5.4

So, here is what works:

`

  • name: Install Yum Group Packages in Login Nodes
    yum: “name=‘@X Window System’ state=present”
    when: inventory_hostname in groups[‘hpc-login’]
    `

the above will install ‘X Window System’ , no issues.

It's looking for '@X Window System' and not @X Window System.

So remove one of the quotes in group_packages.
(I guess it will work fine if you remove all quotes from group_packages too.)