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:
parent
635263975c
commit
6442c00a7a
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user