diff --git a/tasks/virthost.yml b/tasks/virthost.yml index 9f224744c7..c6102be316 100644 --- a/tasks/virthost.yml +++ b/tasks/virthost.yml @@ -4,7 +4,7 @@ - name: set selinux to enforcing selinux: policy=targeted state=enforcing -- name: install libvirt packages +- name: install libvirt packages on rhel6 virthosts yum: pkg={{ item }} state=installed with_items: - qemu-kvm @@ -12,6 +12,17 @@ - python-virtinst tags: - packages + when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == 6 + +- name: install libvirt packages on rhel7 virthosts + yum: pkg={{ item }} state=installed + with_items: + - qemu-kvm + - libvirt + - virt-install + tags: + - packages + when: ansible_distribution == 'RedHat' and ansible_distribution_major_version == 7 # install libvirtd.conf #