mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-14 20:29:11 -07:00
This SELinux commit is too strict and we should only fail if trying to read/tweak SELinux attributes else
python-selinux can't be installed w/ the yum module when missing.
Revert "Added an extra check for target nodes with selinux but without libselinux-python package installed"
This reverts commit 550986b6a1
.
This commit is contained in:
parent
2c881e2b3d
commit
49d28b9a44
1 changed files with 0 additions and 3 deletions
|
@ -84,9 +84,6 @@ 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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue