# ansible-redhat-openstack: why qemu-kvm-tools

**URL:** <https://forum.ansible.com/t/ansible-redhat-openstack-why-qemu-kvm-tools/13373>\
**Category:** Ansible Project\
**Created:** [August 27, 2013, 10:27pm UTC](https://forum.ansible.com/t/ansible-redhat-openstack-why-qemu-kvm-tools/13373 "2013-08-27T22:27:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimon](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Dimon](https://forum.ansible.com/u/Dimon)\
**Post date:** [August 27, 2013, 10:27pm UTC](https://forum.ansible.com/t/ansible-redhat-openstack-why-qemu-kvm-tools/13373/1 "2013-08-27T22:27:05Z")

</div>

I’m trying to Adapt ansible-redhat-openstack to our environment and going through the playbooks carefully and have noticed “anomalies” or rather things that don’t align with our approach. One of them is presence of qemu-kvm-tools package during install, however I couldn’t locate a single place that would use kvm\_stat utility anywhere in the playbook. Did that requirement come from Grizzly install or did it get in as a “convenience tool” ?

---

<div class="post-metadata">

**Author:** ![benno\_joy](https://avatars.discourse-cdn.com/v4/letter/b/73ab20/32.png) [@benno\_joy](https://forum.ansible.com/u/benno_joy)\
**Post date:** [August 28, 2013, 3:03am UTC](https://forum.ansible.com/t/ansible-redhat-openstack-why-qemu-kvm-tools/13373/2 "2013-08-28T03:03:52Z")

</div>

Hi Dmitry,

The playbooks also supports the compute node to use kvm instead of qemu (set in group\_vars/all), In that case if i rememeber correctly kvm\_stat would be used.

Regards,  
Benno

---

<div class="post-metadata">

**Author:** ![Dimon](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Dimon](https://forum.ansible.com/u/Dimon)\
**Post date:** [August 28, 2013, 4:38pm UTC](https://forum.ansible.com/t/ansible-redhat-openstack-why-qemu-kvm-tools/13373/3 "2013-08-28T16:38:43Z")

</div>

I’ve tried making it conditional:

- name: Install qemu-kvm-tools if needed  
yum: name=qemu-kvm-tools state=installed  
when: nova\_libvirt\_type == “kvm”

but somehow it doesn’t quite work. it skips this step regardless of “nova\_libvirt\_type” contents. what am I doing wrong?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [August 28, 2013, 8:41pm UTC](https://forum.ansible.com/t/ansible-redhat-openstack-why-qemu-kvm-tools/13373/4 "2013-08-28T20:41:25Z")

</div>

I’d assume you’re probably not talking to the right server or the value isn’t what you think it is.

Check with “ansible hostname -m setup”

---

<div class="post-metadata">

**Author:** ![Dimon](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Dimon](https://forum.ansible.com/u/Dimon)\
**Post date:** [August 30, 2013, 7:53pm UTC](https://forum.ansible.com/t/ansible-redhat-openstack-why-qemu-kvm-tools/13373/5 "2013-08-30T19:53:49Z")

</div>

variable in question ( nova\_libvirt\_type ) is set via group\_vars/all so it should apply to any host, no?
