1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Added an extra check for target nodes with selinux but without libselinux-python package installed

This commit is contained in:
Fabian Arrotin 2013-04-05 20:37:58 +02:00
parent 4bef5dd08b
commit 550986b6a1

View file

@ -84,6 +84,9 @@ try:
import selinux import selinux
HAVE_SELINUX=True HAVE_SELINUX=True
except ImportError: except ImportError:
if os.path.exists("/selinux/enforce"):
sys.stderr.write('Error: ansible requires the package libselinux-python on nodes with selinux, none found!')
sys.exit(1)
pass pass
try: try: