python bindings (libselinux-python) not installed!

Error

fatal: [co78]: FAILED! => {"changed": false, "checksum": "06285e8ed69e8441c11d011780c708b9d84a2a9d", "msg": "Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!"}
	to retry, use: --limit @/home/ansible/ansible-buch/retry-files/local-action.retry

Cause

The target system had no libselinux-python3 lib - not python2!

Resolution

Install python3 lib too

yum -y install libselinux-python3


Authors:
  • Jochen Schnuerle