From 29cca0191b19b5b4e5d6cc84992dc9a53b19c837 Mon Sep 17 00:00:00 2001 From: riedel Date: Sat, 7 Mar 2015 10:17:41 -0500 Subject: [PATCH] Adding oVirt recognition for oVirt guests. oVirt uses KVM. --- lib/ansible/module_utils/facts.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 41f79a4e8cb..9781bb53ae0 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -2406,6 +2406,11 @@ class LinuxVirtual(Virtual): self.facts['virtualization_role'] = 'guest' return + if sys_vendor == 'oVirt': + self.facts['virtualization_type'] = 'kvm' + self.facts['virtualization_role'] = 'guest' + return + if os.path.exists('/proc/self/status'): for line in get_file_lines('/proc/self/status'): if re.match('^VxID: \d+', line):