ansible/ansible — pull request #1479 by wzzrd (2012-10-30 07:57:50+00:00)
Title: More useful error message for if not HAVE_SELINUX

Currently, if libselinux-python is not installed, the seboolean module errors with a message saying "SELinux not supported on this host". This is not necessarily true, because the only test that is done is to try and import the Python selinux module, which is not a good indication of whether or not SELinux is supported.

This simple patch changes the error message to inform the user he has to install libselinux-python, instead of claiming that SELinux is not supported.