1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

The required package for selinux is libselinux-python

This commit is contained in:
James Laska 2013-09-06 16:24:42 -04:00
parent 7752a56091
commit 546788a1b6
3 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ also need:
.. note:: .. note::
If you have SELinux enabled on remote nodes, you will also want to install If you have SELinux enabled on remote nodes, you will also want to install
python-selinux on them before using any copy/file/template related functions in libselinux-python on them before using any copy/file/template related functions in
Ansible. You can of course still use the yum module in Ansible to install this package on Ansible. You can of course still use the yum module in Ansible to install this package on
remote systems that do not have it. remote systems that do not have it.

View file

@ -269,7 +269,7 @@ class AnsibleModule(object):
if seenabled is not None: if seenabled is not None:
(rc,out,err) = self.run_command(seenabled) (rc,out,err) = self.run_command(seenabled)
if rc == 0: if rc == 0:
self.fail_json(msg="Aborting, target uses selinux but python bindings (python-selinux) aren't installed!") self.fail_json(msg="Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!")
return False return False
if selinux.is_selinux_enabled() == 1: if selinux.is_selinux_enabled() == 1:
return True return True

View file

@ -61,7 +61,7 @@ import sys
try: try:
import selinux import selinux
except ImportError: except ImportError:
print "failed=True msg='python-selinux required for this module'" print "failed=True msg='libselinux-python required for this module'"
sys.exit(1) sys.exit(1)
# getter subroutines # getter subroutines