issues with yum

hello. where is my mistake?

yumtest:

`

Using “with_items” with yum will result in it joining package names with a “,” and grouping things into one transaction.

As such, when you use “with_items”, you can’t concatenate strings in the parameter name

yum: name={{ item }} state=installed
with_items: package_list

Assuming you’re using a package manager for downloading from repos, you’ll want to drop the extension anyway.

I trying to install several packages from local machine, which missed in any repos. Obviously my code will not work, so which is correct way to do it without setting up my own repos?

May be is there a way to prepare second list with pathnames and extensions from file_packages list by ansible to use it at yum module?