Merge "If nova is installed on arm64 with active KVM, default to that."
This commit is contained in:
commit
b4dd7a6e22
@ -18,6 +18,11 @@
|
||||
register: cpuinfo_contents
|
||||
changed_when: false
|
||||
|
||||
- name: Check for existence of KVM node
|
||||
stat:
|
||||
path: "/dev/kvm"
|
||||
register: dev_kvm
|
||||
|
||||
- name: Register a fact for the nova kvm virt type
|
||||
set_fact:
|
||||
nova_virt_type: "kvm"
|
||||
@ -28,6 +33,8 @@
|
||||
or (cpuinfo_contents.stdout.find('pSeries') != -1
|
||||
and cpuinfo_contents.stdout.find('qemu') != -1
|
||||
and ansible_architecture == 'ppc64le')
|
||||
or (dev_kvm.stat.ischr is defined and dev_kvm.stat.ischr
|
||||
and ansible_architecture == 'aarch64')
|
||||
|
||||
- name: Register a fact for the nova powervm virt type
|
||||
set_fact:
|
||||
|
Loading…
x
Reference in New Issue
Block a user