All;
I am building an RPM for a machine using rpm-build. I then need to take the rpm it built, and I want to use yum to install that. Below is my .yml playbook and the error that accompanies trying to install it. Any thoughts would be greatly appreciated. Thanks!!
32 - name: retrieve rpmbuild file
33 shell: ls /root/rpmbuild/RPMS/x86_64/iomemory-vsl-$(uname -r)*.rpm
34 register: fusionIORPM
35 tags:
36 - fusionIO2
37
38 - name: install rpm
39 yum: name={{ fusionIORPM.stdout_lines }} state=present
40 tags:
41 - fusionIO2
TASK: [server1 | retrieve rpmbuild file] ***************************************
changed: [server1]
TASK: [server1 | install rpm] **************************************************
failed: [server1] => {“failed”: true, “item”: “”}
msg: Error from repoquery: [‘/usr/bin/repoquery’, ‘–show-duplicates’, ‘–plugins’, ‘–quiet’, ‘-q’, ‘–disablerepo=*’, ‘–pkgnarrow=installed’, ‘–qf’, ‘%{name}-%{version}-%{release}.%{arch}’, ‘[u/root/rpmbuild/RPMS/x86_64/iomemory-vsl-2.6.32-431.el6.x86_64-2.3.11.183-1.0.el6.x86_64.rpm]’]: Traceback (most recent call last):
File “/usr/bin/repoquery”, line 1241, in
main(sys.argv)
File “/usr/bin/repoquery”, line 1235, in main
repoq.runQuery(regexs)
File “/usr/bin/repoquery”, line 805, in runQuery
pkgs = self.matchPkgs(items, plain_pkgs=plain_pkgs)
File “/usr/bin/repoquery”, line 742, in matchPkgs
pkgs = self.returnPkgList(patterns=items)
File “/usr/bin/repoquery”, line 700, in returnPkgList
ygh = self.doPackageLists(what, **kwargs)
File “/usr/lib/python2.6/site-packages/yum/init.py”, line 2396, in doPackageLists
ignore_case=ic)
File “/usr/lib/python2.6/site-packages/yum/rpmsack.py”, line 622, in returnPackages
rpats = self._compile_patterns(patterns, ignore_case)
File “/usr/lib/python2.6/site-packages/yum/rpmsack.py”, line 549, in _compile_patterns
ret.append((qpat, re.compile(fnmatch.translate(pat))))
File “/usr/lib64/python2.6/re.py”, line 190, in compile
return _compile(pattern, flags)
File “/usr/lib64/python2.6/re.py”, line 245, in _compile
raise error, v # invalid expression
sre_constants.error: bad character range
FATAL: all hosts have already failed – aborting