binarypenguin / automation

Ansible playbook that sets up my network
3 stars 0 forks source link

Physical Hosts #1

Closed tjbenator closed 9 years ago

tjbenator commented 9 years ago

Create a role that is specific to physical hosts.

Tools to include:

tjbenator commented 9 years ago

Would almost be nice to just have this be a part of the common role.

I wonder if there is a way to determine whether a system is in a virtual machine or on physical hardware.

tjbenator commented 9 years ago

There is an Ansible fact that shows whether a machine is a host or guest "ansible_virtualization_role": "guest" OR "ansible_virtualization_role": "host"