# Ansible Yum module to install multiple RPMs from local filesystem

**URL:** <https://forum.ansible.com/t/ansible-yum-module-to-install-multiple-rpms-from-local-filesystem/24558>\
**Category:** Ansible Project\
**Created:** [May 23, 2017, 10:59pm UTC](https://forum.ansible.com/t/ansible-yum-module-to-install-multiple-rpms-from-local-filesystem/24558 "2017-05-23T22:59:58Z")\
**Posts on this page:** 2\
**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:59pm UTC](https://forum.ansible.com/t/ansible-yum-module-to-install-multiple-rpms-from-local-filesystem/24558/1 "2017-05-23T22:59: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:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [May 25, 2017, 8:01pm UTC](https://forum.ansible.com/t/ansible-yum-module-to-install-multiple-rpms-from-local-filesystem/24558/2 "2017-05-25T20:01:02Z")

</div>

- find:  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;paths: /home/LibreOffice\_4.4.1.2\_Linux\_x86-64\_rpm/RPMS  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;patterns: \*.rpm  
&nbsp;&nbsp;&nbsp;register: file\_list

- yum  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name: "{{ file\_list.files | map(attribute='path') | list }}"
