1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02: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:
Julian Kornberger 2018-11-24 17:20:57 +01:00 committed by John R Barker
parent 4b1b0bcbb6
commit 859b6a6526

View file

@ -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