On 24. mai 2017 00:59, SatIng wrote:
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
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": []}
- find:
paths: /home/LibreOffice_4.4.1.2_Linux_x86-64_rpm/RPMS
patterns: *.rpm
register: file_list
- yum
name: "{{ file_list.files | map(attribute='path') | list }}"
--
Kai Stian Olstad
--
You received this message because you are subscribed to the Google Groups "Ansible
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/707cd2b1-9c67-9868-8f56-317a131c244a%40olstad.com.
For more options, visit https://groups.google.com/d/optout.