mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-05 16:04:09 -07:00
parent
29c3bb48e9
commit
545edc9114
3 changed files with 13 additions and 2 deletions
|
@ -30,7 +30,7 @@ class VirtualSysctlDetectionMixin(object):
|
|||
if self.sysctl_path:
|
||||
rc, out, err = self.module.run_command("%s -n %s" % (self.sysctl_path, key))
|
||||
if rc == 0:
|
||||
if re.match('(KVM|Bochs|SmartDC).*', out):
|
||||
if re.match('(KVM|kvm|Bochs|SmartDC).*', out):
|
||||
virtual_product_facts['virtualization_type'] = 'kvm'
|
||||
virtual_product_facts['virtualization_role'] = 'guest'
|
||||
elif re.match('.*VMware.*', out):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue