Aborting, target uses selinux but Python bindings (libselinux-Python) aren’t installed

Question:

I am trying to run Ansible playbook command and getting an error as below.

When I checked for libselinux-python, it showsit is already available.

Please provide your input if anyone has faced and resolved this.

Below are my Python and Ansible versions installed on server.

Answer:

I’ve just lost a whole day to this and I managed to solve it running sudo yum install libselinux-python3

Leave a Reply