diff --git a/roles/virthost/files/rhel7-rhev-ppc64le.repo b/roles/virthost/files/rhel7-rhev-ppc64le.repo new file mode 100644 index 0000000000..43f3f70580 --- /dev/null +++ b/roles/virthost/files/rhel7-rhev-ppc64le.repo @@ -0,0 +1,5 @@ +[rhel7-os] +name = rhel7 os $basearch +baseurl=http://infrastructure.fedoraproject.org/repo/rhel/rhel7/$basearch/rhel-7-for-rhev-power-agents-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 ae81a13697..6463de5a86 100644 --- a/roles/virthost/tasks/main.yml +++ b/roles/virthost/tasks/main.yml @@ -21,7 +21,14 @@ - rhel7-os-repo when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 7 and ansible_architecture == 'x86_64' -- name: install libvirt packages on rhel7 virthosts (x86_64) +- name: install RHEV for el7 repo file + copy: src=rhel7-rhev-ppc64le.repo dest=/etc/yum.repos.d/rhel7-rhev-ppc64le.repo + tags: + - repos + - rhel7-rhev-ppc64le + when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 7 and ansible_architecture == 'ppc64le' + +- name: install libvirt packages on rhel7 virthosts yum: pkg={{ item }} state=present with_items: - qemu-kvm-rhev @@ -31,17 +38,7 @@ - virt-install tags: - packages - when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 7 and ansible_architecture == 'x86_64' - -- name: install libvirt packages on rhel7 virthosts (not x86_64) - yum: pkg={{ item }} state=present - with_items: - - qemu-kvm - - libvirt - - virt-install - tags: - - packages - when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 7 and ansible_architecture == 'ppc64' + when: ansible_distribution == 'RedHat' and ansible_distribution_major_version|int == 7 # install libvirtd.conf #