---
- action: apt pkg={{ item }}
  with_items:
    - libvirt-bin
    - python-libvirt
    - kvm

# TODO: don't run this unless nova.libvirt_type is set to kvm
# TODO: don't show as changed when re-run.
- name: ensure kvm is supported by cpu and enabled in bios
  command: kvm-ok

- user: name=nova groups=libvirtd
- file: dest=/var/lib/nova/instances state=directory owner=nova
- template: src=etc/init/nova-compute.conf dest=/etc/init/nova-compute.conf
- service: name=nova-compute state=started

---
- action: apt pkg={{ item }}
  with_items:
    - libvirt-bin
    - python-libvirt
    - kvm

- name: ensure kvm is supported by cpu and enabled in bios
  command: kvm-ok
  # TODO: don't run this unless nova.libvirt_type is set to kvm
  # available in ansible 1.3
  # changed_when: "False"

- user: name=nova groups=libvirtd
- file: dest=/var/lib/nova/instances state=directory owner=nova
- template: src=etc/init/nova-compute.conf dest=/etc/init/nova-compute.conf
- service: name=nova-compute state=started

Add changed_when=false to kvm_ok check.
Add changed_when=false to kvm_ok check.
