mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Fix virt role detection for Hetzner cloud servers (#42023)
See also https://wiki.hetzner.de/index.php/CloudServer/en
This commit is contained in:
committed by
John R Barker
parent
4b1b0bcbb6
commit
859b6a6526
@@ -114,7 +114,7 @@ class LinuxVirtual(Virtual):
|
||||
virtual_facts['virtualization_role'] = 'guest'
|
||||
return virtual_facts
|
||||
|
||||
if bios_vendor == 'Amazon EC2':
|
||||
if bios_vendor in ['Amazon EC2', 'Hetzner']:
|
||||
virtual_facts['virtualization_type'] = 'kvm'
|
||||
virtual_facts['virtualization_role'] = 'guest'
|
||||
return virtual_facts
|
||||
|
||||
Reference in New Issue
Block a user