As discussed in IRC, it seems that Ansible cannot determine system vendor on RHEL5 based OS. Reason is simple: on RHEL5 there is no /sys/devices/virtual/dmi/id/ directory. Since I need that fact, I did small hack in setup module and I get this fact this way:
/usr/sbin/dmidecode -s system-product-name
AFAIK this method is compatible with all Linux distros (I checked RHEL5, RHEL6, Linux Mint). It can determine vendor be it physical or virtual (VMWare, oVirt etc).
Since this method is more general and portable, perhaps you should use this one instead of reading /sys/devices/virtual/dmi/id/sys_vendor
I'll see if I can produce something for this, we'd like to avoid forking more than one dmidecode call. I guess python-dmidecode might be a better solution for people wanting this (on their targets). python-dmidecode is available in RHEL5.5 (or from EPEL).
To slightly correct dag, I *do* take feature requests, but there's
obviously a bit of a backlog.
My immediate priority is bringing everyone ansible-commander, so a
pull request that actually adds a feature is much more likely to get
immediate traction.
It's definitely not true that you can't share an idea if you aren't
paying us, I don't want folks thinking that
I think I'm inclined to *not* rely on python-dmidecode being installed
because most people will simply not install it, and thus will be
missing those facts.
If we have a choice between install python-dmidecode or not to have these facts at all, then installing additional package seems reasonable requirement.