Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

libsemanage-python not available on CentOS 8 #54

Open
Finwood opened this issue May 14, 2020 · 1 comment
Open

libsemanage-python not available on CentOS 8 #54

Finwood opened this issue May 14, 2020 · 1 comment

Comments

@Finwood
Copy link

Finwood commented May 14, 2020

In CentOS 8 (and almost certainly RHEL 8 as well), libsemanage-python is renamed to python3-libsemanage. As a result, the SELinux Package installation fails when executed on a current CentOS system.

The issue could be fixed by updating the line in vars/os_RedHat.yml, no idea how to make it backwards compatible though.

@ericzolf
Copy link

ericzolf commented Jun 3, 2020

I've been facing the same issue, which I solved locally with the following change:

diff -uNr roles/bertvv.samba/vars/os_RedHat.yml roles/samba/vars/os_RedHat.yml
--- roles/bertvv.samba/vars/os_RedHat.yml	2019-06-22 19:40:00.000000000 +0200
+++ roles/samba/vars/os_RedHat.yml	2020-06-03 16:59:47.521444704 +0200
@@ -9,7 +9,7 @@
 samba_vfs_packages: []
 
 samba_selinux_packages:
-  - libsemanage-python
+  - "{{ ( ansible_distribution_major_version | int >= 8 ) | ternary('python3-libsemanage', 'libsemanage-python') }}"
 
 samba_selinux_booleans:
   - samba_enable_home_dirs

It's a bit obfuscated but it works. A fix in Galaxy would be nice so that I can get rid of my local changes.

ericzolf added a commit to rdiff-backup/rdiff-backup that referenced this issue Jun 6, 2020
DEV: Add samba server with pre-defined shares to Windows vagrant setup to allow for more extensive tests on shares
I had to create local copies of rhbase and samba roles to fix package issues with CentOS 8, the original roles are still downloaded to notice once it's fixed, see:
* bertvv/ansible-role-rh-base#20 
* bertvv/ansible-role-samba#54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants