Skip to content

Commit

Permalink
Always execute Nova virt type detection
Browse files Browse the repository at this point in the history
This fix executes the nova virt type detection on any playbook run
and will eliminate the need to specify the nova-cpuinfo-read,
nova-virt-type-set tags along with the intended tag like nova-config.

Change-Id: Ic34011149f1355cfa48f4ee35537362e2d24e55d
Closes-Bug: #1587452
(cherry picked from commit a8d1e41)
  • Loading branch information
BjoernT committed Jun 17, 2016
1 parent fa29c40 commit a1b773c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/nova_virt_detect.yml
Expand Up @@ -20,10 +20,10 @@
changed_when: false
failed_when: false
tags:
- nova-cpuinfo-read
- always

- name: Register a fact for the nova virt type
set_fact:
nova_virt_type: "{{ ((virt_type_value.stdout | int) > 0) | ternary('kvm', 'qemu') }}"
tags:
- nova-virt-type-set
- always

0 comments on commit a1b773c

Please sign in to comment.