Allow the default (kvm) for nova_virt_type to be used

* Changes the 2 kvm tasks to use "virt_type" instead of "nova_virt_type"
* This var is specified from group_vars file and is defaulted.

Closes-Bug: #242
This commit is contained in:
Andy McCrae 2014-10-03 14:42:13 +01:00
parent 635263975c
commit 6442c00a7a

View File

@ -36,12 +36,12 @@
shell: > shell: >
lxc-device -n {{ container_name }} add /dev/kvm /dev/kvm lxc-device -n {{ container_name }} add /dev/kvm /dev/kvm
delegate_to: "{{ physical_host }}" delegate_to: "{{ physical_host }}"
when: nova_virt_type == 'kvm' and is_metal != true when: virt_type == 'kvm' and is_metal != true
- name: Ensure kvm permissions - name: Ensure kvm permissions
shell: > shell: >
udevadm trigger udevadm trigger
when: nova_virt_type == 'kvm' when: virt_type == 'kvm'
- name: Create log directory - name: Create log directory
file: file: