Add RHEL8 library python3-libsemanage

In modern systems (RHEL8+) with python3 default the library requirement is `python3-libsemanage`.
Updated `libsemanage-python` to `python3-libsemanage`.
This commit is contained in:
Luca Berton 2021-12-17 14:33:18 +01:00
parent 16436f4f55
commit 43ead73934
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,3 @@
---
bugfixes:
- seboolean - add ``python3-libsemanage`` package dependency for RHEL8+ systems.

View file

@ -40,6 +40,7 @@ notes:
requirements: requirements:
- libselinux-python - libselinux-python
- libsemanage-python - libsemanage-python
- python3-libsemanage
author: author:
- Stephen Fromm (@sfromm) - Stephen Fromm (@sfromm)
''' '''
@ -284,7 +285,7 @@ def main():
module.fail_json(msg=missing_required_lib('libselinux-python'), exception=SELINUX_IMP_ERR) module.fail_json(msg=missing_required_lib('libselinux-python'), exception=SELINUX_IMP_ERR)
if not HAVE_SEMANAGE: if not HAVE_SEMANAGE:
module.fail_json(msg=missing_required_lib('libsemanage-python'), exception=SEMANAGE_IMP_ERR) module.fail_json(msg=missing_required_lib('libsemanage-python or python3-libsemanage'), exception=SEMANAGE_IMP_ERR)
ignore_selinux_state = module.params['ignore_selinux_state'] ignore_selinux_state = module.params['ignore_selinux_state']