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
Currently the only way to distinguish a "device" from a "virtual machine" in the Inventory is to look for the presence of "device_type" host var. There's no easy way to create a group based on this when I need to write a playbook that only operates on VMs, or only on physical devices.
I propose an "is_virtual" host var be created and added to all hosts as True or False.
A group is_virtual could optionally be created with a new group_by option.
ISSUE TYPE
SUMMARY
Currently the only way to distinguish a "device" from a "virtual machine" in the Inventory is to look for the presence of "device_type" host var. There's no easy way to create a group based on this when I need to write a playbook that only operates on VMs, or only on physical devices.
"is_virtual"
host var be created and added to all hosts asTrue
orFalse
.is_virtual
could optionally be created with a newgroup_by
option.EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: