diff --git a/roles/virthost/files/rhel7-os.repo b/roles/virthost/files/rhel7-os.repo new file mode 100644 index 0000000000..d0e379ed36 --- /dev/null +++ b/roles/virthost/files/rhel7-os.repo @@ -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 diff --git a/roles/virthost/tasks/main.yml b/roles/virthost/tasks/main.yml index ddba767c7e..44c1df1a9a 100644 --- a/roles/virthost/tasks/main.yml +++ b/roles/virthost/tasks/main.yml @@ -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: