You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The facts ansible_virtualization_tech_guest and ansible_virtualization_type are also incorrect on this laptop.
Issue Type
Bug Report
Component Name
lib/ansible/module_utils/facts/virtual/linux.py
Ansible Version
$ ansible --versionansible [core 2.14.3]
Configuration
N/A
OS / Environment
Ubuntu 22.04
$ cat /sys/devices/virtual/dmi/id/sys_vendor
Microsoft Corporation
$ cat /sys/devices/virtual/dmi/id/product_family
Surface
$ sudo dmidecode | grep -B1 "Microsoft\|Surface"
BIOS Information
Vendor: Microsoft Corporation
--
System Information
Manufacturer: Microsoft Corporation
Product Name: Surface Laptop Go
--
Wake-up Type: Unknown
SKU Number: Surface_Laptop_Go_1943
Family: Surface
--
Chassis Information
Manufacturer: Microsoft Corporation
--
Base Board Information
Manufacturer: Microsoft Corporation
Product Name: Surface Laptop Go
bcoca
added
P3
Priority 3 - Approved, No Time Limitation
and removed
needs_triage
Needs a first human triage before being processed.
labels
Mar 21, 2023
Summary
Ansible uses /sys/devices/virtual/dmi/id/sys_vendor to determine if the system is virtualized, but the test incorrectly assumes that "Microsoft Corporation" always means VirtualPC.
The facts ansible_virtualization_tech_guest and ansible_virtualization_type are also incorrect on this laptop.
Issue Type
Bug Report
Component Name
lib/ansible/module_utils/facts/virtual/linux.py
Ansible Version
Configuration
N/A
OS / Environment
Ubuntu 22.04
Steps to Reproduce
$ ansible -i localhost, all -m setup | grep -A1 ansible_virtualization
Expected Results
Ansible should report a physical machine, not virtual.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: