- name: ensure libvirt and other deps are installed
  yum:
    name: "{{ item }}"
    state: present
  with_items:
    - qemu-kvm
    - libvirt
    - libvirt-python
    - python-lxml
    - openvswitch

- name: modprobe kvm_intel
  modprobe:
    name: kvm_intel
    state: present

- name: start libvirtd
  service:
    name: libvirtd
    state: running

- name: ensure correct permissions on /dev/kvm
  file:
    path: /dev/kvm
    owner: root
    group: kvm
    mode: 0660
- name: install release repo
  yum:
    name: http://rdoproject.org/repos/openstack-liberty/rdo-release-liberty.rpm
    state: present

- name: ensure libvirt and other deps are installed
  yum:
    name: "{{ item }}"
    state: present
  with_items:
    - qemu-kvm
    - libvirt
    - libvirt-python
    - python-lxml
    - openvswitch

- name: modprobe kvm_intel
  modprobe:
    name: kvm_intel
    state: present

- name: start libvirtd
  service:
    name: libvirtd
    state: running

- name: ensure correct permissions on /dev/kvm
  file:
    path: /dev/kvm
    owner: root
    group: kvm
    mode: 0660
Add rdo release repo fro openvswitch
Add rdo release repo fro openvswitch
