diff --git a/changelogs/fragments/selinux_import.yml b/changelogs/fragments/selinux_import.yml new file mode 100644 index 00000000000..881e41959ef --- /dev/null +++ b/changelogs/fragments/selinux_import.yml @@ -0,0 +1,3 @@ +--- +minor_changes: + - remove extraneous selinux import (https://github.com/ansible/ansible/issues/83657). diff --git a/lib/ansible/module_utils/common/file.py b/lib/ansible/module_utils/common/file.py index b62e4c64f50..1b976fd9329 100644 --- a/lib/ansible/module_utils/common/file.py +++ b/lib/ansible/module_utils/common/file.py @@ -7,12 +7,6 @@ import os import stat import re -try: - import selinux # pylint: disable=unused-import - HAVE_SELINUX = True -except ImportError: - HAVE_SELINUX = False - FILE_ATTRIBUTES = { 'A': 'noatime',