Add rhel7-os repo and rhev qemu rpms to virthosts.
This commit is contained in:
parent
db404ea389
commit
ccbca3dc4a
2 changed files with 15 additions and 1 deletions
5
roles/virthost/files/rhel7-os.repo
Normal file
5
roles/virthost/files/rhel7-os.repo
Normal file
|
@ -0,0 +1,5 @@
|
|||
[rhel7-os]
|
||||
name = rhel7 os $basearch
|
||||
baseurl=http://infrastructure.fedoraproject.org/repo/rhel/rhel7/$basearch/rhel-7-openstack-7.0-rpms
|
||||
includepkgs=qemu*
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
|
@ -14,10 +14,19 @@
|
|||
- packages
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 6
|
||||
|
||||
- name: install openstack 7 repo file
|
||||
copy: src=rhel7-os.repo dest=/etc/yum.repos.d/rhel7-os.repo
|
||||
tags:
|
||||
- repos
|
||||
- rhel7-os-repo
|
||||
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 7
|
||||
|
||||
- name: install libvirt packages on rhel7 virthosts
|
||||
yum: pkg={{ item }} state=present
|
||||
with_items:
|
||||
- qemu-kvm
|
||||
- qemu-kvm-rhev
|
||||
- qemu-kvm-tools-rhev
|
||||
- qemu-img-rhev
|
||||
- libvirt
|
||||
- virt-install
|
||||
tags:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue