# Install multiple rpms from local filesysyem with yum module

**URL:** <https://forum.ansible.com/t/install-multiple-rpms-from-local-filesysyem-with-yum-module/24557>\
**Category:** Ansible Developer\
**Created:** [May 23, 2017, 10:57pm UTC](https://forum.ansible.com/t/install-multiple-rpms-from-local-filesysyem-with-yum-module/24557 "2017-05-23T22:57:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SatIng](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@SatIng](https://forum.ansible.com/u/SatIng)\
**Post date:** [May 23, 2017, 10:57pm UTC](https://forum.ansible.com/t/install-multiple-rpms-from-local-filesysyem-with-yum-module/24557/1 "2017-05-23T22:57:58Z")

</div>

I am trying to install Libreoffice using ansible yum module

Downloaded from [https://downloadarchive.documentfoundation.org/libreoffice/old/4.4.1.2/rpm/x86\_64/LibreOffice\_4.4.1.2\_Linux\_x86-64\_rpm.tar.gz](https://downloadarchive.documentfoundation.org/libreoffice/old/4.4.1.2/rpm/x86_64/LibreOffice_4.4.1.2_Linux_x86-64_rpm.tar.gz)  
Extracted and all libreoffice rpms kept at /home//LibreOffice\_4.4.1.2\_Linux\_x86-64\_rpm/RPMS/

- yum:  
name: “/home/LibreOffice\_4.4.1.2\_Linux\_x86-64\_rpm/RPMS/\*.rpm”  
state: present

above task failing with error  
fatal: [localhost]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: “No Package file matching ‘/home/LibreOffice\_4.4.1.2\_Linux\_x86-64\_rpm/RPMS/\*.rpm’ found on system”, “rc”: 0, “results”: }

Need help

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [May 23, 2017, 11:12pm UTC](https://forum.ansible.com/t/install-multiple-rpms-from-local-filesysyem-with-yum-module/24557/2 "2017-05-23T23:12:30Z")

</div>

Look into using with\_fileglob for looping over a list of local files.

---

<div class="post-metadata">

**Author:** ![SatIng](https://avatars.discourse-cdn.com/v4/letter/s/9fc348/32.png) [@SatIng](https://forum.ansible.com/u/SatIng)\
**Post date:** [May 23, 2017, 11:28pm UTC](https://forum.ansible.com/t/install-multiple-rpms-from-local-filesysyem-with-yum-module/24557/3 "2017-05-23T23:28:35Z")

</div>

Worked…!!

- yum:  
name: {{ item }}  
state: present  
with\_fileglob:
- “/home/LibreOffice\_4.4.1.2\_Linux\_x86-64\_rpm/RPMS/\*.rpm”

Thanks **Matt Martz**
