ansible-bender icon indicating copy to clipboard operation
ansible-bender copied to clipboard

No libselinux package found when using Python 3.8 (needed by Ansible Core 2.12)

Open TheMasterFX opened this issue 1 year ago • 0 comments

I'm using AlmaLinux 8.6 and ansible-bender 0.9.0. If I install ansible it needs python 3.8 since it provides ansible-core-2.12.2. But there is no python38-libsselinux package for python 3.8, an according to this bugreport there never will be? ( https://bugzilla.redhat.com/show_bug.cgi?id=1932650 ) However I was not able to run ansible-bender since it is checking for selinux (_selinux) available

There was an error during execution:
This system is using selinux(8) and selinux python module is not installed. There is a known issue in ansible that it freezes in this setup:
  https://bugzilla.redhat.com/show_bug.cgi?id=1696706
Please install libselinux python bindings (on Fedora the package name is python3-libselinux).

So I just modified the function _check_selinux_iz_gud to just return. It seems to work. However I dont't know if it was just luck due to my minimalistic playbook.

TheMasterFX avatar Jul 09 '22 22:07 TheMasterFX