summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Fenzi <kevin@scrye.com>2016-02-03 22:07:35 +0000
committerKevin Fenzi <kevin@scrye.com>2016-02-03 22:07:35 +0000
commitccbca3dc4a345b153c130774fe702b737b282bf6 (patch)
tree2a144459071dcb1d5eb5eb724197672bda3915eb
parentdb404ea389e930f92d479198998eca79ff7f94b9 (diff)
downloadansible-ccbca3dc4a345b153c130774fe702b737b282bf6.tar.gz
ansible-ccbca3dc4a345b153c130774fe702b737b282bf6.tar.xz
ansible-ccbca3dc4a345b153c130774fe702b737b282bf6.zip
Add rhel7-os repo and rhev qemu rpms to virthosts.
-rw-r--r--roles/virthost/files/rhel7-os.repo5
-rw-r--r--roles/virthost/tasks/main.yml11
2 files changed, 15 insertions, 1 deletions
diff --git a/roles/virthost/files/rhel7-os.repo b/roles/virthost/files/rhel7-os.repo
new file mode 100644
index 000000000..d0e379ed3
--- /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 ddba767c7..44c1df1a9 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: