# issues with yum

**URL:** <https://forum.ansible.com/t/issues-with-yum/16440>\
**Category:** Ansible Project\
**Created:** [October 6, 2014, 12:18pm UTC](https://forum.ansible.com/t/issues-with-yum/16440 "2014-10-06T12:18:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dmitry\_Sukhodoyev](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@Dmitry\_Sukhodoyev](https://forum.ansible.com/u/Dmitry_Sukhodoyev)\
**Post date:** [October 6, 2014, 12:18pm UTC](https://forum.ansible.com/t/issues-with-yum/16440/1 "2014-10-06T12:18:34Z")

</div>

hello. where is my mistake?

yumtest:

`

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [October 6, 2014, 12:28pm UTC](https://forum.ansible.com/t/issues-with-yum/16440/2 "2014-10-06T12:28:18Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Dmitry\_Sukhodoyev](https://avatars.discourse-cdn.com/v4/letter/d/48db29/32.png) [@Dmitry\_Sukhodoyev](https://forum.ansible.com/u/Dmitry_Sukhodoyev)\
**Post date:** [October 6, 2014, 1:34pm UTC](https://forum.ansible.com/t/issues-with-yum/16440/3 "2014-10-06T13:34:18Z")

</div>

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?
