mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
The required package for selinux is libselinux-python
This commit is contained in:
parent
7752a56091
commit
546788a1b6
3 changed files with 3 additions and 3 deletions
|
@ -269,7 +269,7 @@ class AnsibleModule(object):
|
|||
if seenabled is not None:
|
||||
(rc,out,err) = self.run_command(seenabled)
|
||||
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
|
||||
if selinux.is_selinux_enabled() == 1:
|
||||
return True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue