Hello all.
I’ve been trying to troubleshoot a problem for days and I haven’t been able to find anything online that refers to RHEL8/Centos8.I have success running on RHEL/Centos7, but I’m trying to push to the new platform. Ikeep getting this error:
TASK [genjson: Generate F5 JSON - Nodes] **************************************************************************************************************************************************** task path: /home/admsplitb/Lab-Infrastructure/roles/f5_dclb/tasks/main.yml:6 fatal: [
genjson`-1]: FAILED! => {“changed”: false, “checksum”: “60caf69c5c72c2814e3b1688a9564a86205778ed”, “msg”: “Aborting, target uses selinux but python bindings (libselinux-python) aren’t installed!”}
`
My version of ansible and python
(py3venv) [user@lab playbooks]$ ansible --version ansible 2.9.11 config file = /home/user/Lab-Infrastructure/playbooks/ansible.cfg ansible python module location = /home/user/py3venv/lib64/python3.8/site-packages/ansible executable location = /home/user/py3venv/bin/ansible python version = 3.8.0 (default, Mar 9 2020, 18:02:46) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]
I tried to link previous packages as indicated in this github issue
First ensuring that the packages are installed:
yum install libselinux-python
And then linking the files to your environment.
cd ~/py3venv/lib64/python3.8/site-packages/ ln -s /usr/lib64/python3.6/site-packages/selinux ln -s /usr/lib64/python3.6/site-packages/_selinux.cpython-36m-x86_64-linux-gnu.so
But in RHEL8, the package names have changed.
`
yum install libselinux
yum install python3-libselinux
`
Anybody experience this and solve it yet?