So yum isn't liking some of the output of the previous step and is choking on it.
Do this: - debug: var=fusionIORPM Though really I think you're using yum a bit non-natively. It would be better to run createrepo and make a repository, configure the repository and then you can just say you want fusionIO installed versus needing to specify a version. (or even that you want the latest) This way you can also avoid compiling on each individual box -- yum mirrors are really easy to set up and just require HTTP. On Fri, Dec 13, 2013 at 12:17 PM, BrianAI <[email protected]>wrote: > 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 <module> > 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 > > -- > 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]. > For more options, visit https://groups.google.com/groups/opt_out. > -- Michael DeHaan <[email protected]> CTO, AnsibleWorks, Inc. http://www.ansibleworks.com/ -- 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]. For more options, visit https://groups.google.com/groups/opt_out.
