[libvirt] [jenkins-ci PATCH 2/4] guests: Use package_manager everywhere

Andrea Bolognani abologna at redhat.com
Thu May 9 13:43:15 UTC 2019


On Thu, 2019-05-09 at 13:08 +0100, Daniel P. Berrangé wrote:
> On Tue, May 07, 2019 at 03:17:40PM +0200, Andrea Bolognani wrote:
> >  - name: Bootstrap Ansible
> > -  raw: 'yum install -y {{ python }}'
> > -  when:
> > -    - package_format == 'rpm'
> > -
> > -- name: Bootstrap Ansible
> > -  raw: 'apt-get install -y {{ python }}'
> > -  when:
> > -    - package_format == 'deb'
> > -
> > -- name: Bootstrap Ansible
> > -  raw: 'pkg install -y {{ python }}'
> > -  when:
> > -    - package_format == 'pkg'
> > +  raw: '{{ package_manager }} install -y {{ python }}'
> 
> Heh, rather amuzing that all three package managers happen to support
> the same "install -y" command syntax.

"We don't make mistakes, just happy little accidents." :)

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list