Red Hat Bugzilla – Bug 979892
ansible package should depend on libselinux-python
Last modified: 2014-01-21 18:24:14 EST
The selinux ansible module complains and the command fails:
"msg=python-selinux required for this module".
Please add libselinux-python to the Requires of this package.
I believe this also affects Fedora 18 and 19.
That message is coming from the client where the operation is being run not from the system where you are executing ansible.
So the message is telling you that you must install python-selinux on the remote system before you execute that particular action.
Oops, yes I forgot to mention I was running a "--connection=local" on this occasion, so the message is in fact coming from the system where I'm running ansible.
But I can see how it would be silly to make it a Requires... However, the error message could probably be improved to be more useful on Fedora. Would you consider applying this patch?:
@@ -59,7 +59,7 @@ import sys
- print json.dumps(failed=True, msg='python-selinux required for this module')
+ print json.dumps(failed=True, msg='libselinux-python package required for this module')
# getter subroutines
I don't think carrying local patches to improve the error messages for every module with a requirement is going to be very sustainable.
Perhaps ask about enhancing these messages in upstream ansible?
(In reply to seth vidal from comment #3)
> I don't think carrying local patches to improve the error messages for every
> module with a requirement is going to be very sustainable.
I agree that would be a less than optimal use of time...
> Perhaps ask about enhancing these messages in upstream ansible?
Perhaps I'll do that. Looks like python-selinux is the Debian package name, so perhaps the error message can include both terms (which then covers almost the entire userbase).